开发者

how to retrive column name alone from db to data table [closed]

开发者_JAVA技巧 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜