SQL语言基础概要.ppt

(1)圆括号() (2)位运算符~,单目 -,单目+ (3)* / % (4)+ – (5)比较运算符 (6)^ | (7)NOT (8)AND (9)OR 特殊逻辑运算符 (10)= Create function f_name(varlist) returns type As begin … end declare @x int,@y int; set @x=2; set @y= case @x when 1 then 5 when 2 then 9 when 3 then 10 else 15 end; select @y declare @x int,@y int; set @x=3; set @y= case when @x =1 or @x=4 then 5 when @x =2 or @x=5 then 9 when @x =3 then 10 else 15 end; select @y WAITFOR语句 示例:以下T-SQL代码表示暂停5秒钟后再显示欢迎信息: WAITFOR DELAY 00:00:05 PRINT 欢迎进入我的博客!’ 示例:以下T-SQL代码则表示直到下午2:30才可以执行查询学生信息的操作: WAITFOR TIME 14:30 USE 教学管理系统 GO SELECT *

文档评论(0)

1亿VIP精品文档

相关文档