ORACLE
文章平均质量分 54
bazingaz
这个作者很懒,什么都没留下…
展开
-
ORACLE外连接小结~ http://blog.csdn.net/wh62592855/article/details/4852908
//table1和table2为两个测试表 随便插入几条数据 SQL> select * from table1; ID NAME ---------- -------------------- 1 wh 2 wp 3 wq SQL> select * from table2;转载 2011-10-20 20:20:39 · 381 阅读 · 0 评论 -
oracle note1
list 查看缓冲区的命令 l / 执行缓冲区的命令 change 改变缓冲区的命令 c ? set save 保存缓冲区命令 @ 执行文件命令 get 查看文件命令 get c:\oracle\a.txt edit 编辑缓存区文件 column id heading "编号" describe col dname format A10 heading "部门名称"原创 2011-10-30 13:26:28 · 302 阅读 · 0 评论 -
oracle note3 常用的表视图
declare v_name varchar2(10); v_sql varchar2(100); begin v_name:='name'; v_sql:='select '||v_name||' from table1 where id = 1 '; execute immediate v_sql into v_name; dbms_output.put_line(v_name)原创 2011-10-30 13:28:31 · 316 阅读 · 0 评论 -
oracle note2 存储过程
declare x varchar2(10):='ssss'; begin --x:='This is..'; dbms_output.put_line('x''s value is' ||x); end; / =============================== SQL> set serveroutput on -----------------if---------原创 2011-10-30 13:27:33 · 366 阅读 · 0 评论 -
动态游标
create or replace procedure RL_SZJC_ADDNEW is tmp_flag number; tmp_now date; strSql varchar2(1000); --next_id number; tmp_rec RL_SZJC%ROWTYPE; type dy_cursor is ref cursor; cur_a dy_cursor; b原创 2011-11-26 10:36:37 · 392 阅读 · 0 评论 -
oracle sql join
SQL> select * from emp; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO ----- ---------- --------- ----- ----------- --------- --------- ------ 7369 SMITH CLERK 790原创 2011-11-08 14:04:27 · 1944 阅读 · 0 评论