下列选项中,能够正确创建数据表student中 stu_id和course_id两个字段共同作为主键的SQL语句是
举一反三
- 下列选项中,能够正确创建数据表student中的id字段为主键的SQL语句是
- 下面选项中,能够更新表student中id值小于4的SQL语句是()
- 下面选项中,查询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;
- 请按照以下要求编写相应的SQL语句。 创建student表,表中包含代表学生编号的字段id,整型,是主键;还包含姓名字段name,字符串类型。写出建表的SQL语句。 插入2条记录,分别为:1,’youjun’; 2,’ wusong’。 查询student表中id为1的学生姓名信息。 查询name为“wusong”的学生编号。
- 下列关于删除表中记录的SQL语句,正确的是( )。 A: DELETE student,where id=11; B: DELETE FROM student where id=11; C: DELETE INTO student where id=11; D: DELETE student where id=11;