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;

 

posted on 2016-10-10 19:16  kuillldan  阅读(128)  评论(0编辑  收藏  举报