立即创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:DBErp进销存-客户表:http://open.yesapi.cn/tablelist/yesapi_dberp_customer.html


-- 数据库大全:DBErp进销存-客户表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_dberp_customer` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `customer_category_id` int(11) NOT NULL COMMENT '',
    `customer_code` varchar(30) NOT NULL COMMENT '',
    `customer_name` varchar(100) NOT NULL COMMENT '',
    `customer_sort` int(11) NOT NULL DEFAULT '255' COMMENT '',
    `customer_email` varchar(30) NOT NULL COMMENT '',
    `customer_address` varchar(255) NOT NULL COMMENT '',
    `customer_contacts` varchar(30) NOT NULL COMMENT '',
    `customer_phone` varchar(20) NOT NULL COMMENT '',
    `customer_telephone` varchar(20) NOT NULL COMMENT '',
    `customer_bank` varchar(100) NOT NULL COMMENT '',
    `customer_bank_account` varchar(30) NOT NULL COMMENT '',
    `customer_tax` varchar(30) NOT NULL COMMENT '',
    `customer_info` varchar(255) NOT NULL COMMENT '',
    `admin_id` int(11) NOT NULL COMMENT '',
    `region_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `region_values` varchar(100) NOT NULL COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'DBErp进销存-客户表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-16 条, 共 16 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
customer_category_idint(11)无索引
customer_codevarchar(30)无索引
customer_namevarchar(100)无索引
customer_sortint(11)255无索引255
customer_emailvarchar(30)无索引
customer_addressvarchar(255)无索引
customer_contactsvarchar(30)无索引
customer_phonevarchar(20)无索引
customer_telephonevarchar(20)无索引
customer_bankvarchar(100)无索引
customer_bank_accountvarchar(30)无索引
customer_taxvarchar(30)无索引
customer_infovarchar(255)无索引
admin_idint(11)无索引
region_idint(11)0无索引0
region_valuesvarchar(100)无索引

回到顶部 ↑