SQL
showilove
彪悍的人生无需解释
展开
-
日期型数匹配查询(%)
日期型数匹配查询,“%”只对字符型数据匹配,不可直接进行匹配查询,必须进行转换。代码如下:select * from table where ((rtrim(cast(year(date) as varchar)) like 2007%) and (rtrim(cast(month(date) as varchar)) like %))原创 2009-07-21 12:41:00 · 396 阅读 · 0 评论 -
存储过程
存储过程创建语法:create or replace procedure 存储过程名(param1 in type,param2 outtype) as 变量1 类型(值范围); 变量2 类型(值范围); Begin Select count(*) into 变量1 from 表A where列名=param1; If (判断条件) then原创 2009-08-24 11:06:00 · 417 阅读 · 0 评论