若需要在teacher表中添加一个数据类型为INT(4)的age字段,则ALTER TABLE teacher age INT(4); 下划线中应填入的是
举一反三
- 下列对结构体类型变量定义不正确的是( ) A: struct teacher { int num; int age; }teach1; B: struct { int num; int age; }teach1,teach2; C: struct { int num; int age; }teacher; struct teacher teach1; D: struct teacher { int num; int age; }; struct teacher teach1;
- 控制台修改表USER,往表中增加一个整形非空字段AGE的语句正确的是( )。 A: ALTER TABLE USER ADD AGE INT NOT NULL B: DROP TABLE USER C: CREATE TABLE IF NOT EXISTS USER D: ALTER TABLE USER AGE INT NOT NULL
- 下列对结构类型变量不正确的定义是 A: struct teacher{ int num; int age; }teacher1; B: struct{ int num; int age; }teacher1,teacher2; C: struct{ int num; int age; }teacher D: struct teacher{ int num,age; }a;
- 修改teacher表,向表中添加一个年龄字段age,要求是短整型。
- 学生表s有4个字段分别为:sno,sname,sex,age,要在表s中删除字段age,可选用的SQL语句是( )。 A: delete age from s; B: alter table s delete age; C: update s age; D: alter table s drop age;