How to list all columns using SQL query?
Asked
Active
Viewed 44 times
1 Answers
1
select column_name, data_type, character_maximum_length
from INFORMATION_SCHEMA.COLUMNS
where table_name = '**table_name**';
-
You might want to explain what the code does. Code only answers are rarely useful to future readers. – BDL Mar 25 '21 at 09:33