1、检查表是否存在:
SELECT COUNT(0) FROM user_tables WHERE TABLE_NAME = 'TableName';
2、检查列是否存在:
SELECT COUNT(0) FROM user_tab_cols WHERE table_NAME = 'TableName' AND column_name = 'ColumnName';
1、检查表是否存在:
SELECT COUNT(0) FROM user_tables WHERE TABLE_NAME = 'TableName';
2、检查列是否存在:
SELECT COUNT(0) FROM user_tab_cols WHERE table_NAME = 'TableName' AND column_name = 'ColumnName';