SQL语句是:
SELECT COLUMN_NAME,DATA_TYPE,DATA_LENGTH,NULLABLE,DATA_DEFAULT FROM ALL_TAB_COLUMNS WHERE TABLE_NAME='T_TASK_INDEX' ORDER BY COLUMN_NAME
结果如图所示字段ID是存在默认值的,这样就出现了两次。可是实际表结构是不存在两列的:
up
换为下面的试试:
SELECT COLUMN_NAME,DATA_TYPE,DATA_LENGTH,NULLABLE,DATA_DEFAULT FROM User_TAB_COLUMNS WHERE TABLE_NAME='T_TASK_INDEX' ORDER BY COLUMN_NAME
这样不行。和上个结果一样。