2013年1月18日
摘要: 转自:http://www.cnblogs.com/SunShineYPH/archive/2011/12/13/2285570.html一、定义变量view sourceprint?--简单赋值 declare@a intset@a=5 print @a --使用select语句赋值 declare@user1 nvarchar(50) select@user1='张三'print @user1 declare@user2 nvarchar(50) select@user2 = NamefromST_User whereID=1 print @user2 --使用update 阅读全文
posted @ 2013-01-18 16:40 Rain&Sun 阅读(361) 评论(0) 推荐(0)