INSERT INTO Goods(Name , Storage , Price) VALUES( ’ Keyboard ’ , 3000 , 90.00) 的作用是( )
举一反三
- 现有表 book,字段:id (int),title (varchar), price(float); 其中 id 字段设为主键,使用 insert 语句向 book 表中 插入数据,以下语句错误的是( )。 A: insert into book (id,title,price) values(1,'java',100) B: insert into book (title,price) values('java',100) C: insert into book values ('java',100) D: insert book values('java',100)
- 现有表book,字段:id(int),title(varchar),price(float);其中id字段设为主键,使用insert语句向book表中插入数据,以下语句正确的是 A: insert into book(title,price) values('java',100) B: c)insert into book values('java',100) C: insert book values('java',100) D: insert into book(id,title,price) values(1,'java',100)
- 下列选项中,采用指定表的字段名的方式向表Student中添加id为1,name为”小王”的记录值的SQL语句是"( ) A: INSERT INTO Student(“id”,”name”) VALUES(1,”小王”); B: INSERT INTO Student(id,name) VALUES(1,’小王’); C: INSERT INTO Student VALUES(1,”小王”); D: INSERT INTO Student(id,”name”) VALUES(1,”小王”);
- 现有表book,属性为:id(int),title(nvarchar(10)),price(numeric(6,2)),其中id为identity列,使用insert语句想book中插入数据,以下语句错误的是( ) A: Insert book(id,title,price) values (1,’java’,56.3) B: Insert book(title,price) values (’java’,56.3) C: Insert book values (’java’,56.3) D: Insert book values (’java’,56)
- 如果要插入一条员工数据,则下列选项正确的是() A: INSERT INTO Employee(Name,Gender,Age,Rank) values('张朝阳','男',48,'201') B: INSERT INTO Employee(Name,Gender,Age,Rank) values(“张朝阳”,”男”,48,”201”) C: INSERT INTO Employee(Name,Gender,Age) values(‘张朝阳','男',48,'201') D: INSERT INTO Employee(Name,Gender,Age,Rank) value(‘张朝阳','男',48,'201')