SELECT table_name,
column_name,
data_type, data_length
FROM USER_TAB_COLUMNS
WHERE table_name = 'MYTABLE'
我需要一个查询来获取此查询。
答案 0 :(得分:0)
早上好。
我认为您的问题可能已在stackoverflow上得到解答:SQL server query to get the list of columns in a table along with Data types, NOT NULL, and PRIMARY KEY constraints
请看一下,不要只想复制并粘贴其他人的答案
答案 1 :(得分:0)
select "SELECT table_name, column_name, data_type, data_length
FROM USER_TAB_COLUMNS WHERE table_name = 'MYTABLE'" from dual;