开发者

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

开发者 https://www.devze.com 2023-01-13 08:12 出处:网络
开发者_JAVA技巧It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
开发者_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

精彩评论

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