SELECT table_name,
column_name,
data_type, data_length
FROM USER_TAB_COLUMNS
WHERE table_name = 'MYTABLE'
我需要一个查询来获取这个查询。
早上好。
我认为您的问题可能已经在 stackoverflow 上得到了回答:SQL server query to get the list of columns in a table as well as Data types, NOT NULL, and PRIMARY KEY constraints
请看一下,不要只是想复制粘贴别人的答案
select "SELECT table_name, column_name, data_type, data_length
FROM USER_TAB_COLUMNS WHERE table_name = 'MYTABLE'" from dual;