请写出下列语句执行结果? mysql > SELECT '1841710' into @stu_10; mysql > SELECT @stu_10;
举一反三
- 在MySQL数据库中,创建一个名为Stu的新表,同时要求该表与原有的Students表的表结构相同,同时包括Students表中的记录,正确的SQL语句是( )。 A: CREATE TABLE Stu LIKE students; B: CREATE TABLE Stu (SELECT * FROM Students); C: CREATE TABLE Stu AS SELECT * FROM Students; D: CREATE TABLE Stu LIKE SELECT sno,sname FROM Students;
- 查询名字中有“金”字的同学的情况,应使用语句 A: SELECT * FROM stu WHERE stuname='_金_' B: SELECT * FROM stu WHERE stuname='%金%' C: SELECT * FROM stu WHERE stuname like '_金_' D: SELECT * FROM stu WHERE stuname like '%金%'
- 下面选项中,查询stu表中id值不在2和5之间的学生的SQL语句是( )。 A: select * from stu where id != 2,3,4,5; B: select * from stu where id not betwen 5 and 2; C: select * from stu where id not betwen 2 and 5; D: select * from stu where id not in 2,3,4,5;
- PHP将select语句发送到MYSQL执行之后,返回的结果类型是_____________
- MySQL数据库中查询前10条记录的SQL语句是()。 A: select top 10 from table B: select * from table limit 10 C: select * from table limit 1, 10 D: select * from table limit 0, 10