请写出向 student 表插入一条名字为”张三”,年龄为 18 的记录的 sql 语句
举一反三
- 设有学生表STUDENT(学号,姓名,性别,年龄),则向STUDENT表插入一条新记录的正确的SQL语句是( )
- 表student中的包含两个字段,整型的id,字符串型的name。向表student中插入一条记录的正确SQL语句( ) A: insert into student(2018001,“张三”) B: insert into student values(2018001,'张三') C: insert into student(2018001,'张三') D: insert into student values (2018001,“张三”)
- 向student表插入一条新记录的正确SQL语句是( )。 A: APPEND INTO student VALUES(′0401′,′王芳’,′女′,18) B: APPEND student VALUES(′0401′,′王芳′,′女′,18) C: INSERT INTO student VALUES(′0401′,′王芳′,′女′,18) D: INSERT student VALUES(′0401′,′王芳′,′女′,18)
- 向student表插入一条新记录的正确SQL语句是______。 A: INSERT INTO student VALUES("0401","丽萍","女",18) B: APPEND student VALUES("0401","丽萍","女",18) C: APPEND INTO student VALUES("0401","丽萍","女",18) D: INSERT student VALUES("0401","丽萍","女",18)
- (1)为teachers表创建触发器t2,当插入一条新记录时,若该记录中的工资值salary小于800,则拒绝插入。 (2)写出一条能触发该触发器的语句。 请写出对应的SQL语句,并截图。