创建表book(id,name,price),其中id为主键。create table book(id varchar __________ not null,.....);横线里进行填空。
举一反三
- create table book(id varchar(10) not null,name varchar(10) not null,price float not null);该SQL语句语法正确。
- 【单选题】以下哪个 sql 语句表示在 mysql 中创建 book 表,并添加 id 字段和 title 字段? A. create table book{ id varchar(32), title varchar(50) }; B. create table book( id varchar2(32), title varchar2(50) ); C. create table book( id varchar(32), title varchar(50) ); D. create table book[ id varchar(32), title varchar(50) ];
- 现有表 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)
- hive里创建表test,表里添加两个字段id和name,以下哪个HQL是正确的( ) A: create test(id int, name string); B: create test(int id, string name); C: create table test(int id, string name); D: create table test(id int, name string)