How do I list all the columns in a table?

前端 未结 12 699
挽巷
挽巷 2020-12-07 07:31

For the various popular database systems, how do you list all the columns in a table?

12条回答
  •  悲&欢浪女
    2020-12-07 07:53

    I know it's late but I use this command for Oracle:

    select column_name,data_type,data_length from all_tab_columns where TABLE_NAME = 'xxxx' AND OWNER ='xxxxxxxxxx'
    

提交回复
热议问题