DROP TABLE IF EXISTS duihuanshangcheng;CREATE TABLE duihuanshangcheng id bigint20 NOT NULL AUTO_INCREMENT COMMENT 主键 addtime timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 创建时间 shangpinbianh
删除表"duihuanshangcheng",如果存在的话,然后创建一个新的表"duihuanshangcheng",包含以下字段:id(主键,自增长),addtime(创建时间,默认为当前时间),shangpinbianhao(商品编号,唯一),shangpinmingcheng(商品名称),shangpinleixing(商品类型),shangpinguige(商品规格),tupian(图片),pinpai(品牌),suoxuhuanbaobi(所需环保币),shangpinjieshao(商品介绍,长文本),thumbsupnum(赞数量,默认为0),crazilynum(踩数量,默认为0)。该表使用InnoDB引擎,设置自增长起始值为77,字符集为utf8,注释为"兑换商城"。

原文地址: http://www.cveoy.top/t/topic/e8At 著作权归作者所有。请勿转载和采集!