Ask Your Question
4

How to obtain the name of a column?

asked 2023-06-26 11:31:07 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-26 11:50:02 +0000

nofretete gravatar image

To obtain the name of a column in a table, you can use the SQL query:

SELECT column_name FROM information_schema.columns WHERE table_name = 'your_table_name';

Replace your_table_name with the name of your table. This query will return a list of all the column names in the specified table.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-26 11:31:07 +0000

Seen: 7 times

Last updated: Jun 26 '23