摘要:
简短版 我现在遇到一个问题X 我想到可能的原因是a, b, c 我排除了以下可能性d, e, f 我尝试过以下方案g, h, i 请问还有什么是我遗漏的? 首先你需要明白 程序员们只偏爱艰巨的任务,或者能激发他们思维的好问题 对方没有义务忍耐你的无知和懒惰 周全的思考,准备好你的问题,草率的发问只能 阅读全文
摘要:
多表查询sql语句 --解锁SCOTT用户 2 alter user scott account unlock 3 --检索指定的列 4 select job,ename,empno from emp; 5 --带有表达是的select子句 6 select sal*(1+0.2),sal from 阅读全文
摘要:
```sql --定义可被SQL语句调用的子程序 create or replace function getempdept( p_empno emp.empno%type )return varchar2 as v_dname dept.dname%TYPE; begin select b.dname into v_dname from emp a,dept b where... 阅读全文
摘要:
1 --定义包中函数的纯度级别 2 create or replace package purityTest is 3 type dept_typ is table of dept%rowtype index by binary_integer; 4 dept_tab dept_typ; 5 procedure newdept( 6 p... 阅读全文
摘要:
1 --创建一个函数,用来根据部门编号返回调薪幅度 2 create or replace function get_ratio_by_dept(deptno varchar2) 3 return number is 4 n_salaryratio number(10,2); --调薪比率返回值变量 5 begin 6 case... 阅读全文