Oracle中常用操作
查看表中的字段名和类型
SELECT column_name,DATA_TYPE FROM cols WHERE TABLE_NAME=upper('tableName') ORDER BY COLUMN_NAME;
查看当前用户下的所有表:
select * from user_tables t ORDER BY t.TABLE_NAME;
查看autocommit状态:
SHOW AUTOCOMMIT;
打开或关闭AUTOCOMMIT:
SET AUTOCOMMIT ON/OFF;