SQL语句,具体使用方法请看帮助Create Table tab1 (fld1 integer)
Drop Table tab1Alter Table tab1 Add COLUMN col1 integer
Alter Table tab1 Drop COLUMN col1

解决方案 »

  1.   

    建立数据表
    create table 数据表名称(字段名称1 数据类型1(数据长度),字段名称2 数据类型2(数据长度),...)删除数据表
    drop table 数据表名称编辑数据表
    添加字段
    alter table 数据表名称 add 字段名称 数据类型(数据长度)删除字段
    alter table  数据表名称 drop 字段名称字段更名
    没有直接的更名语句,但可以用先删再除添加的方法实现
      

  2.   

    建立数据表
    create table 数据表名称(字段名称1 数据类型1(数据长度),字段名称2 数据类型2(数据长度),...)删除数据表
    drop table 数据表名称编辑数据表
    添加字段
    alter table 数据表名称 add 字段名称 数据类型(数据长度)删除字段
    alter table  数据表名称 drop 字段名称
      

  3.   

    dim conn as new adodb.conection
    conn.open "dsn=aaa;"
    conn.excute(creat table tbName (column1 text,column2 integer))但是运行出错,为什么?
      

  4.   

    Dim conn As New ADODB.Connection
      conn.open "dsn=aaa;"
      conn.Execute "create table tbName(column1 text,column2 integer)"您有多处拼写错误
    conection-->Connection
    excute-->Execute
    creat-->create
    用双引号