how to retrive column name alone from db to data table [closed]
how to retrive column name alone from db to data table
For a CSV file?
First line of the file should contain column headers.
If you just want the names and you're dealing with an actual database, you can get an empty recordset using a query such as
select * from mytable where 1=2
A better solution, depending on the database you are using, would be to look at the system tables to get this information.
精彩评论