adspace
how to get a list of columns in an existing table? : Sql dba
Answer Posted / Rajesh Kumar Gautam
"To get a list of columns (or fields) in an existing SQL table, you can use the DESCRIBE or COLUMNS command. The general syntax for both commands is similar:
```
DESCRIBE table_name;
COLUMNS FROM table_name;
```
Both commands will return a list of columns (fields) along with their data types, lengths, and other characteristics."n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is your daily office routine?
how to use regular expression in pattern match conditions? : Sql dba
Is inner join faster than left join?
If a cursor is open, how can we find in a pl/sql block?
Can delete statement be rollbacked?
Can we rollback truncate?
What is the best sql course?
Is primary key clustered index?
what is collation? : Sql dba
what are the advantages of sql ? : Sql dba
Can we use distinct and group by together?
define sql insert statement ? : Sql dba
what is bcp? When does it used? : Sql dba
Do we need to rebuild index after truncate?
what are all the common sql function? : Sql dba