I have a database table. Is there a query that gets the names of the columns in a table?
Example:
Name || Age || Gender
Tom || 30 || male
Kate || 20 || Female
I want a query to get the column names: Name , Age, Gender
Thanks you
edit: Sorry about some missing info:
I am using an OleDB connection in C# to read data from an excel sheet
You can retrieve a list of columns in a table like:
INFORMATION_SCHEMA is an ISO standard, so it works on most databases.