摘要:
select * from info_payselect * from code_pay_typepay_type in ('003','004','005') 阅读全文
posted @ 2007-07-03 19:14 小西 阅读(144) 评论(0) 推荐(0)
|
||
|
摘要:
select * from info_payselect * from code_pay_typepay_type in ('003','004','005') 阅读全文
posted @ 2007-07-03 19:14 小西 阅读(144) 评论(0) 推荐(0)
摘要:
#######instr########################################### INSTR方法的格式为INSTR(源字符串, 目标字符串, 起始位置, 匹配序号) 例如:INSTR('CORPORATE FLOOR','OR', 3, 2)中,源字符串为'CORPORATE FLOOR', 目标字符串为'OR',起始位置为3,取第2个匹配项的位置。 默认查找顺序为从... 阅读全文
posted @ 2007-07-03 18:55 小西 阅读(1137) 评论(0) 推荐(0)
摘要:
合计列select decode(grouping(billing_day),1,'合计',billing_day),decode(grouping(area_code),1,'小计',area_code),count(* )from rep_commission_awhere billing_day >=20041201and billing_day <=20041231group by ro... 阅读全文
posted @ 2007-07-03 18:53 小西 阅读(212) 评论(0) 推荐(0)
摘要:
现在突然对内外连接概念有点模糊,有谁能给解释一下?谢谢!1. 内连接是一对一的连接;外连接是一对多的连接 如下: where table_a.id = table_b.id 内连接 where table_a.id = table_b.id(+) 为外连接2.内联接:Select Table_a.a,Table_b.b from Table_a,Table_b where t... 阅读全文
posted @ 2007-07-03 18:52 小西 阅读(385) 评论(0) 推荐(0)
摘要:
CREATE procedure aaa(vv OUT FLOAT) isBEGIN vv := -1; DELETE FROM a_tmp WHERE sno IN (245,246); vv := SQL%ROWCOUNT; end aaa; 阅读全文
posted @ 2007-07-03 18:49 小西 阅读(516) 评论(0) 推荐(0)
摘要:
-- select MOD(65,50) from dual --取余 -- select trunc( 65/33) from dual -- 取整 trunc (1.9) = 1-- select ceil(65/60) from dual -- 取整 ceil(1.1) = 2 阅读全文
posted @ 2007-07-03 16:02 小西 阅读(25381) 评论(0) 推荐(1) |
||