摘要:
sql server支持变量所以一般使用方法如下: DECLARE @Val varchar(50) select @Val = param_value where t_param where param_name = 'log_type' if(@Val is null) begin select 阅读全文
posted @ 2020-05-26 20:30
dcrenl
阅读(2454)
评论(0)
推荐(0)
摘要:
mysql的语法与sql server有很多不同,sql server执行插入更新时可以update后使用if判断返回的@@rowcount值,然后确定是否插入,mysql在语句中无法使用类似sql server的@@rowcount,但是有另外一些方式也能达到无数据插入,有数据更新的目的: 1、R 阅读全文
posted @ 2020-05-26 19:04
dcrenl
阅读(2667)
评论(0)
推荐(1)