sql 存储过程 求助

日期:2012-01-06 22:54:30 人气:2

sql 存储过程 求助

--oracle中的写法 不知道你要的是什么数据库 declare i number; begin select count(a1) into i from 表1 where a1 like '%abc%'; -- 如果i大于0则说明表1 的a1列中出现‘abc’ if i > 0 then insert into 表3 select a2,b2 from 表2 where not exists (select 1 from 表3 where 表
    A+
热门评论