单项选择题
A.外联接查询返回的结果集行数可能大于所有符合联接条件的结果集行数。 B.多表联接查询必须使用到JOIN关键字 C.内联接查询返回的结果是:所有符合联接条件的数据。 D.在where子句中指定联接条件可以实现内联接查询。
A.Select name as’姓名’from table B.Select name as姓名from table where id=1 C.Sleect name=姓名from table姓名=names(正确答案) D.Select names姓名from table
A.select max(score)from grade B.select top1score from grade order by score asc C.Select min(score)fromgrade D.select top1score from grade order by score desc
A.SELECT phone FROM authors WHERE phone LIKE’4[1,0]%’ B.SELECT phone FROM authors WHERE phonein’4[^10]%’ C.SELECT phone FROM authors WHERE phone LIKE’4_[1,0]%’ D.SELECT phone FROM authors WHERE phone between’41%’and’40%’
A.Select email from student where email !=null B.Select email from student where email not is null C.Select email from student where email<>null D.Select email from student where email is no tnull
A.错误提示:orderby子句中不能出现表达式。 B.正确执行,显示grade表中各列值,按照score由低到高排序。 C.正确执行,显示grade表中各列值,以及加权成绩列,按照score由低到高排序。 D.错误提示:where子句中不能出现表达式。
A.selectright(’hello’,3)返回值为:hel B.selectltrim(rtrim(’hello’))返回值为:hello(前后都无空格) C.selectreplace(’hello’,’e’,’o’)返回值为:hollo D.selectlen(’hello’)返回值为:5
A.查询输出分组 B.设置查询条件 C.对记录排序 D.限制查询返回的数据行
A.内联接 B.自联接 C.外联接 D.左联接
A.更新了多行数据 B.没有数据更新 C.删除了一行不符合要求的数据 D.T_SQL语法错误,不能执行
A.每次只能更新一行数据B.表中的数据行可以全部被更新C.如果没有数据项被更新,将提示错误信息D.更新数据时,不能带有WHERE条件子句