摘要: 一、定义变量?--简单赋值declare @a intset @a=5print @a--使用select语句赋值declare @user1 nvarchar(50)select @user1='张三'print @user1declare @user2 nvarchar(50)select @user2 = Name from ST_User where ID=1print @user2--使用update语句赋值declare @user3 nvarchar(50)update ST_User set @user3 = Name where ID=1print @user 阅读全文
posted @ 2011-12-09 08:15 gds111789 阅读(376) 评论(1) 推荐(0) 编辑