假设有student表,可以正确添加字段“平均分数”的命令是

admin2015-11-21  6

问题 假设有student表,可以正确添加字段“平均分数”的命令是

选项 A、ALTER TABLE student ADD平均分数F(6,2)
B、ALTER DBF student ADD平均分数F 6,2
C、CHANGE TABLE student ADD平均分数F(6,2)
D、CHANGE TABLE student INSERT平均分数6,2

答案A

解析 向表中添加新字段的SQL语句格式为:
    ALTERTABLETableName   
    ADD FieldNameI FieldType[(nFieldWidth[,nPrecision])]
    [NULLtNOTNULL][CHECK….][ERROR….][DEFAULT….]
   [PRIMARY KEYIUNIQUE]
    [REFRERENCES tablename2[TAG Tagnamel]]
转载请注明原文地址:https://kaotiyun.com/show/eMbp777K
0

最新回复(0)