一个关于存储过程参数的问题! if @age!=null 改成 if @age is not null 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if @age!=null改为 if @age is not null create proc myUpdate_age(@age tinyint=null)with recompileasif @age is not nullupdate table set 年龄=@ageselect * from table create proc myUpdate_age(@age tinyint=null)with recompileasif @age is not nullupdate table set 年龄=@ageselect * from tablereturn create proc myUpdate_age(@age tinyint=null)with recompileasif @age is not nullupdate table set 年龄=@ageselect * from tablereturn 创建视图的问题?? 搞不懂SQL2000的一个简单问题,大家点播一下,可能我太愚笨了。 求助 !!如何确保 存储过程完整执行??? 问个SQL 关于 convert 怎么样把一列的数据平均成两列 初学,求一条SQL语句在线等各位大大。很简单的。 事务中删除一个记录,再读取此记录,为何还能读到 疑难算法问题,请指教! 数据库还原后dbo被孤立,如何解决 80分求救!!真的很着急.关于拷贝数据库的问题 restore log 为什么不能恢复日志? 如何对记录行进行加锁?
with recompile
as
if @age is not null
update table set 年龄=@ageselect * from table
with recompile
as
if @age is not null
update table set 年龄=@ageselect * from tablereturn
with recompile
as
if @age is not null
update table set 年龄=@ageselect * from tablereturn