摘要: 转自 http://www.cnblogs.com/nicholas_f/articles/1526029.html/*不带任何参数存储过程(输出系统日期)*/create or replace procedure output_date isbegindbms_output.put_line(sysdate);end output_date;/*带参数in和out的存储过程*/create or replace procedure get_username(v_id in number,v_username out varchar2)asbegin select username into 阅读全文
posted @ 2013-08-22 21:38 princessd8251 阅读(225) 评论(0) 推荐(0) 编辑
摘要: substr(字符串,截取开始位置,截取长度) //返回截取的字substr('Hello World',0,1) //返回结果为 'H' *从字符串第一个字符开始截取长度为1的字符串substr('Hello World',1,1) //返回结果为 'H' *0和1都是表示截取的开始位置为第一个字符substr('Hello World',2,4) //返回结果为 'ello'substr('Hello World',-3,3)//返回结果为 'rld' *负数(- 阅读全文
posted @ 2013-08-22 21:35 princessd8251 阅读(158) 评论(0) 推荐(0) 编辑