摘要:
简单条件判断语句 SQL> declare 2 myage number := 10; 3 begin 4 if myage < 11 then 5 dbms_output.put_line('I am a child'); 6 end if; 7 end; 8 / I am a child PL/ 阅读全文
摘要:
SQL> select * from dept1 where deptno=20; DEPTNO DNAME LOC 20 RESEARCH DALLAS SQL> declare 2 v_deptno dept.deptno%TYPE :=20; 3 V_loc dept.loc%TYPE :=' 阅读全文
摘要:
MYSQL:rename table table1 to table2;SQL SERVER:EXEC sp_rename 'table1', 'table2';Oracle:alter table table1 rename to table2db2:rename table table1 to 阅读全文
摘要:
[oracle@enmo1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sat May 13 12:00:23 2017 Copyright (c) 1982, 2013, Oracle. All rights 阅读全文