摘要:
touch text_one.txt 创建文件cp test_one test_two 复制文件cp *.txt aa/ 把以txt结尾的文件都复制到aa文件夹下mv aa.txt aa/aaaaaaaaaaa.txt 将aa.txt移动到aa文件夹并改名rm -i aa.txt 交互式删除文件rm 阅读全文
摘要:
merge into merge into base_monitor_device musing( select s.moni_device_id,s.moni_device_name,t1.daxiong,t1.azwz from base_monitor_device s left join s 阅读全文
摘要:
select elsif 选出员工工资根据类型加薪create or replace procedure Proc_emp_salary is c_manager constant number :=0.1;c_salesman constant number :=0.3;v_job varchar 阅读全文
摘要:
cursor c_emp is select job,empno,ename from emp for update;c_manager constant number :=0.30;c_salesman constant number :=0.4;v_job varchar(100);v_empn 阅读全文
摘要:
cursor c_emp is select job,empno,ename from emp for update;c_manager constant number :=0.30;c_salesman constant number :=0.4;v_job varchar(100);v_empn 阅读全文
摘要:
使用集合来存储查询到的名称,工作,工资create or replace procedure emp_info_type is type emp_info_type is record ( empname varchar2(100), job varchar2(100), sal number(7, 阅读全文
摘要:
create or replace procedure cursor_emp_ename is --使用游标和索引显示员工名称 type emp_table is table of varchar2(10) index by binary_integer; emplist emp_table; cu 阅读全文
摘要:
--使用%rowtype定义游标类型的变量提取emp数据 cursor emp_cursor is select empno,ename,hiredate from emp; v_emp emp_cursor%rowtype; begin open emp_cursor; loop fetch em 阅读全文
摘要:
create or replace procedure PROC_Test_User(vF_username in varchar2, out_Refcursor out sys_refcursor) isbegin open out_Refcursor for SELECT u.* FROM tb 阅读全文
摘要:
delete table_name where rowid not in ( select max(rowid) from table_name group t by t.param,t.param ); 现查找表中按不同字段group后的结果,选取rowid最大的,删除剩余的. 阅读全文