摘要: Oracle 存储过程 删除表记录时删除不存在的记录也是显示删除成功create or replace procedure delDept(p_deptno in dept.deptno%type) isbegin delete from dept where deptno=p_deptno;... 阅读全文
posted @ 2015-12-22 16:10 jack_ou 阅读(12872) 评论(0) 推荐(0)
摘要: EXCEPTION when others then rollback; dbms_output.put_line('code:' || sqlcode); dbms_output.put_line('errm:' || sqlerrm); raise;when other... 阅读全文
posted @ 2015-12-22 14:51 jack_ou 阅读(6818) 评论(0) 推荐(0)
摘要: 打印至控制台(无显示):BEGINDBMS_OUTPUT.PUT_LINE('Hey look, ma!');END;/打印至控制台(有显示):SET SERVEROUTPUT ONBEGINDBMS_OUTPUT.PUT_LINE('Hey look, Ma!');END;/打印至控制台(有显示方... 阅读全文
posted @ 2015-12-22 14:49 jack_ou 阅读(3842) 评论(0) 推荐(0)
摘要: http://hi.baidu.com/wind_stay/blog/item/85113a6f6553a5d680cb4a0e.htmloracle通配符,运算符的使用 用于where比较条件的有: 等于:=、、>=、 包含:in、not in exists、not exists 范围:b... 阅读全文
posted @ 2015-12-22 14:21 jack_ou 阅读(3700) 评论(0) 推荐(0)
摘要: 在SQLPLUS下,实现中-英字符集转换alter session set nls_language='AMERICAN';alter session set nls_language='SIMPLIFIED CHINESE'; 主要知识点: 一、有关表的操作 建表 create table tes 阅读全文
posted @ 2015-12-22 11:17 jack_ou 阅读(2931) 评论(0) 推荐(0)