关于select语句下列说法正确的是()
A: select(name)fromtableperson:所有记录的name字段的值
B: select(name)frompersonwhereage=12orname="aa";or或者
C: select(name)fromtablepersonwhereage=12;查找age=12的记录的那个字段的值
D: select(name,age)frompersonwhereage=12andname="aa";and并且
A: select(name)fromtableperson:所有记录的name字段的值
B: select(name)frompersonwhereage=12orname="aa";or或者
C: select(name)fromtablepersonwhereage=12;查找age=12的记录的那个字段的值
D: select(name,age)frompersonwhereage=12andname="aa";and并且
举一反三
- 关于 select 语句下列说法正确的是() A: select (错ame) from table perso错: 所有记录的 错ame 字段的值 B: select (错ame) from perso错 where age=12 or 错ame="aa"; or 或者 C: select (错ame) from table perso错 where age=12; 查找 age=12 的记录的那个字段的值 D: select (错ame , age) from perso错 where age=12 a错d 错ame="aa"; a错d 并且
- 已知 student 表有姓名字段 name ,并且存在 name 为’sun%er’的记录。下列选项中,以匹配“ sun%er ”字段值的 SQL 语句是 A: SELECT * FROM student WHERE name LIKE ‘sun%er’; B: SELECT * FROM student WHERE name LIKE ‘%%%’; C: SELECT * FROM student WHERE name LIKE '%\%%'; D: SELECT * FROM student WHERE name =‘sun%er’;
- 表student中的包含两个字段,整型的id,字符串型的name。只显示表student中name列记录的SQL语句正确的是() A: select name from student B: select * from student C: select from name in student D: select name
- 若想查询student表中name为空值的记录,则正确的SQL语句是( )。 A: SELECT * FROM student WHERE name = NULL; B: SELECT * FROM student WHERE name like NULL; C: SELECT * FROM student WHERE name = 'NULL'; D: SELECT * FROM student WHERE name is NULL;
- 若想查询student表中name为空值的记录,则正确的SQL语句是(1.0分) A: select * from student where name = null; B: select * from student where name link null; C: select * from student where name = 'null'; D: select * from student where name is null;