-- 查询某个表的信息
select * from user_tables t where table_name= upper('test_table');
-- 查询某个表的所有字段
SELECT * FROM syscolumnsext col WHERE col.tabid=(select tabid from systables where upper(tabname) = upper('test_table'));
-- 查询某个表的某个字段
SELECT * FROM syscolumnsext col WHERE col.tabid=(select tabid from systables where upper(tabname) = upper('test_table')) AND upper(col.colname) = upper('id');
-- 修改字段类型
ALTER TABLE test_table modify(abc3 NVARCHAR2(200));
-- 添加字段
ALTER TABLE test_table ADD (abc7 integer);
-- 修改字段名字
RENAME COLUMN test_table.abc2 TO abc3;
-- 添加字段注释
comment ON column test_table.abc3 IS '测试测试';
-- 添加表注释
comment ON table test_table IS '测试测试';
-- 修改表名字
RENAME table test_table TO test_table2;