2011年8月17日
摘要: 存储过程中使用了类似如下语句: SELECT col INTO v_col FROM t_table 当查询不到记录时,会出现“数据未发现”的异常 解决方法: (1)使用MAX函数 SELECT MAX(col) INTO v_col FROM t_table (2) 使用异常处理 BEGIN SELECT col INTO v_col FROM t_table; EXCEPTION WHEN N... 阅读全文
posted @ 2011-08-17 14:26 Peter Zhang 阅读(5952) 评论(0) 推荐(0) 编辑
摘要: INITCAP() 假设c1为一字符串.函数INITCAP()是将每个单词的第一个字母大写,其它字母变为小写返回. 单词由空格,控制字符,标点符号等非字母符号限制. select initcap('hello world') from dual; 结果 INITCAP('HE ----------- Hello World select initcap('汉ello world,汉ellowor... 阅读全文
posted @ 2011-08-17 14:20 Peter Zhang 阅读(16511) 评论(0) 推荐(0) 编辑
摘要: 报错截图: 当前解决方案: Automatic statistics 含义:When you execute a statement in a SQL Window or in a Test Window, PL/SQL Developer will automatically generate a statistic report of this execution. One condition... 阅读全文
posted @ 2011-08-17 10:03 Peter Zhang 阅读(1384) 评论(0) 推荐(0) 编辑