各位:
我想按着见表的顺序提取出表头信息。要实现这个功能Sql语句怎么写啊! select column_name from user_tab_columns where table_name = Upper('表名') 这条语句,有的表是按顺序提取的,有的表不是。困惑。
我想按着见表的顺序提取出表头信息。要实现这个功能Sql语句怎么写啊! select column_name from user_tab_columns where table_name = Upper('表名') 这条语句,有的表是按顺序提取的,有的表不是。困惑。
where table_name = ?
ORDER BY table_name,column_id;
SELECT t.TABLE_NAME, t.COLUMN_ID, t.COLUMN_NAME
FROM user_tab_columns t
ORDER BY t.TABLE_NAME, t.COLUMN_ID;
SELECT t.TABLE_NAME, t.COLUMN_ID, t.COLUMN_NAME
FROM user_tab_cols t
ORDER BY t.TABLE_NAME, t.COLUMN_ID;