注册 登录
编程论坛 Delphi论坛

请问高手:delphi7 + MySql TTABLE 中Add all fields后,所有的CHAR字段没有出来,为什么?

terryxie2008 发布于 2013-03-09 10:54, 708 次点击
请问高手:delphi7 + MySql  TTABLE 中Add all fields后,所有的CHAR字段没有出来,为什么?

其他的非CHAR字段都能出来,只有char字段没有出来。
如下表中,VARCHAR都出不来。请问高手,这跟啥有关系呀?

create table ac_mstr (
    ac_line             tinyint         not null    default 0,
    ac_addr             tinyint         not null    default 0,
    ac_nbr              tinyint         not null    default 0,
    ac_building            VARCHAR(20)        null,
    ac_floor            VARCHAR(10)        null,
    ac_room                VARCHAR(10)        null,
    ac_name             VARCHAR(20)        not null    default '',
    ac_dept             VARCHAR(20)        not null    default '',
    ac_owner            VARCHAR(20)        not null    default '',
    ac_temperature      numeric(16, 2)     not null,
    ac_workingday       bit                not null    default 0,
    ac_weekend          bit                not null    default 0,
    ac_active            bit             not null    default 1,

    constraint pk_ac_mstr primary key  (ac_line, ac_addr, ac_nbr)
)
1 回复
#2
有容就大2013-03-11 17:29
试了下 表示没问题啊
1