下列SQL语句中能查看MySQL数据库用户帐号的是()。
A: SELECT user FROM mysql.user;
B: SELECT USER();c、SELECT * FROM user;D、SELECT user FROM mysql;
A: SELECT user FROM mysql.user;
B: SELECT USER();c、SELECT * FROM user;D、SELECT user FROM mysql;
举一反三
- 以下可以正确运行的查询语句有( ) A: select * from user ; B: select * from user where username =’李四’; C: select * from user where 1=1; D: select distinct * from user;
- 以下语句哪个是正确的Select查询语句( ) A: select * from use B: select distinct username user; C: select * from user where ; D: select * from user username=’李四’;
- 从数据表中查询用户信息,以下语句中不正确的是( ) 。 A: select<br/>* from user; B: select<br/>username,password from user; C: select<br/>* from user order username; D: select<br/>* from user where username="admin";
- 下列哪些SQL语句可以查询出User表中name为张三的记录()。 A: SELECT * FROM User WHERE name = ’张三’ B: SELECT * FROM User WHERE name = ’张三’ LIMIT 0,1 C: SELECT * FROM User WHERE name LIKE ’张三’ D: SELECT * FROM User WHERE name LIKE ’%张三%’
- 用户表user中存在一个名字字段username,现查询名字字段中包含"凤"的用户,下列SQL语句中,正确的是() A: select * from user where username = '凤'; B: select * from user where username like '%凤%'; C: select * from user where username like '_凤_'; D: select * from user where username like '凤';