• 2022-06-27
    以下不是修改表操作的是( )
    A: drop table user;
    B: alter table user add remark varchar(20);
    C: alter table user character set utf8;
    D: alter table user drop remark;
  • A

    内容

    • 0

      以下可以用来修改表结构的命令是()。 A: alter table student add sphone int B: alter table student add unique(sfzh) C: alter table student drop column saddress D: alter table student alter column sage int

    • 1

      删除用户账户命令是( ) A: DROP USER B: DROP TABLE USER C: DELETE USER D: DELETE FROM USER

    • 2

      ‎用下面的语句创建了Student表:‍‎CREATE TABLE Student(Sno CHAR(10) primary key,‍‎Sname VARCHAR(10),‍‎age SMALLINT,‍‎Cname VARCHAR(20) );‍‎请用ALTER TABLE语句设置age字段默认值为20,正确的语句是()。‍‎‍ A: ALTER TABLE Student ALTER COLUMN age SET DEFAULT 20; B: ALTER TABLE Student CHANGE COLUMN age SET DEFAULT 20; C: ALTER TABLE Student ADD COLUMN age SET DEFAULT 20; D: ALTER TABLE Student DROP COLUMN age SET DEFAULT 20;

    • 3

      【单选题】如何删除students表中的所有记录() A. Drop table students; B. Delete from students; C. Alter table students; D. delete user students;

    • 4

      以下可以用来修改表结构的命令是()。 A: alter table student add sphone int(11) B: alter table student unique(sfzh) C: alter table drop column saddress D: alter table student change age sage int(2)