题目详情
单选题 如果在创建stu表的时候要求id列为自动增长字段(初始值为1,增量为1),则可使用以下哪种方法实现
A. create table stu (id int not null auto, sname varchar(20), nation varchar(20) default '汉族')
B. create table stu (id int not null auto_increment, sname varchar(20), nation varchar(20) default '汉族')
C. create table stu (id int not null auto_increments, sname varchar(20), nation varchar(20) default '汉族')
D. create table stu (id int not null increment, sname varchar(20), nation varchar(20) default '汉族')

学科:MySQL数据库
时间:2024-11-08 08:45:52
相关题目
相关作业
