mysql dede_mysql调用dede创建数据表语句

本文展示了如何在MySQL中使用SQL语句创建dede_goods数据表,并进行数据填充和更新操作。首先通过`show create table`查看表结构,接着创建包含商品信息的`goods`表,包括商品ID、分类ID、商品条形码等字段。然后,从`shop.ecs_goods`表中插入数据到新建的`goods`表。最后,演示了一个更新数据的例子,调整num字段值使其为10的倍数。
摘要由CSDN通过智能技术生成

① show create table goods;

② CREATE TABLE `goods` (

`goods_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,

`cat_id` smallint(5) unsigned NOT NULL DEFAULT '0',

`goods_sn` varchar(60) NOT NULL DEFAULT '',

`goods_name` varchar(120) NOT NULL DEFAULT '',

`click_count` int(10) unsigned NOT NULL DEFAULT '0',

`goods_number` smallint(5) unsigned NOT NULL DEFAULT '0',

`market_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00',

`shop_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00',

`add_time` int(10) unsigned NOT NULL DEFAULT '0',

`is_best` tinyint(1) unsigned NOT NULL DEFAULT '0',

`is_new` tinyint(1) unsigned NOT NULL DEFAULT '0',

`is_hot` tinyint(1) uns

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值