Oracle 查询及输出建表语句

调整缓区大小

SQL> set arraysize 1

SQL> set echo off
SQL> set heading off
SQL> set feedback off
SQL> set verify off
SQL> set pagesize 0

SQL> set linesize 79

select * from user_constraints u where u.table_name=Upper('Toperator');

select dbms_metadata.get_ddl('CONSTRAINT', 'PK_TOPERATOR', 'TRADE') FROM DUAL;


先记在这儿,有空再整理!

你可能感兴趣的:(Oracle)