如何实现php对mysql表的批量修改????
解决方案 »
- phpcms中如何在首页直接调用图片栏目中的最新图片(急)
- ucenter接口实例中无法同步退出
- wordpress中如何让每个页面单独于首页显示出来啊?
- PHP 开发工具问题
- 怎么把1920*500的图片居中不变型对直
- PHP菜鸟在线求解密
- zend9.0.2 debug 调试怎么使用?
- 关于dedecms sql标签动态传入参数问题
- #1045 - Access denied for user 'you'@'localhost' (using password: YES)
- 有个人用QQ给我发了一个消息(类似图片的样子),我打开后,直接跳转到了她的QQ资料名片,如何才能实现?
- 求搜索框输入拼音显示相关文字提示原理(有源码实例更好)
- PHP 小问题
循环
拼sql
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`i_main_id` bigint(20) unsigned NOT NULL DEFAULT '0',
`i_cltid` int(11) NOT NULL DEFAULT '0',
`c_pd_code` char(30) NOT NULL DEFAULT '-',
`i_size_01` int(5) NOT NULL DEFAULT '0',
`i_size_02` int(5) NOT NULL DEFAULT '0',
`i_size_03` int(5) NOT NULL DEFAULT '0',
`i_size_04` int(5) NOT NULL DEFAULT '0',
`i_size_05` int(5) NOT NULL DEFAULT '0',
`i_size_06` int(5) NOT NULL DEFAULT '0',
`i_size_07` int(5) NOT NULL DEFAULT '0',
`i_size_08` int(5) NOT NULL DEFAULT '0',
`i_size_09` int(5) NOT NULL DEFAULT '0',
`i_size_10` int(5) NOT NULL DEFAULT '0',
`i_size_11` int(5) NOT NULL DEFAULT '0',
`i_size_12` int(5) NOT NULL DEFAULT '0',
`i_size_13` int(5) NOT NULL DEFAULT '0',
`i_size_14` int(5) NOT NULL DEFAULT '0',
`i_size_15` int(5) NOT NULL DEFAULT '0',
`i_size_16` int(5) NOT NULL DEFAULT '0',
`i_size_17` int(5) NOT NULL DEFAULT '0',
`i_size_18` int(5) NOT NULL DEFAULT '0',
`i_pairs` int(11) NOT NULL DEFAULT '0',
`i_total` int(10) NOT NULL DEFAULT '0',
`i_price` decimal(8,2) NOT NULL DEFAULT '0.00',
`d_chk_date` date NOT NULL DEFAULT '2000-01-01',
`d_sent_date` date NOT NULL DEFAULT '2000-01-01', #交货期
`c_extcode` char(25) NOT NULL DEFAULT '-',#客户货号
`c_logo` char(30) NOT NULL DEFAULT '-',#品牌
`c_to_address` char(10) NOT NULL DEFAULT '-',
`c_info` char(200) NOT NULL DEFAULT '-',
`i_kind` int(10) NOT NULL DEFAULT '0', #回单、计划、首次订单
`i_order_kind` int(3) unsigned NOT NULL default '0',#订单类别(内单、外单) 另表注明单据运算方法
`i_order_dept` int(3) unsigned NOT NULL default '0',#下单部门
`time` TIMESTAMP(14),#更新时间标记
`status` tinyint(3) unsigned NOT NULL default '0',#状态
PRIMARY KEY (`id`),
KEY `idx_products_sell_order_sub_on_i_cltid` (`i_cltid`),
KEY `idx_products_sell_order_sub_on_i_main_id` (`i_order_dept`,`i_main_id`),
KEY `idx_products_sell_order_sub_on_c_pd_code` (`c_pd_code`),
KEY `idx_products_sell_order_on_d_chk_date` (`d_chk_date`),
KEY `idx_products_sell_order_on_d_sent_date` (`d_sent_date`),
KEY `idx_products_sell_order_sub_on_i_order_kind` (`i_order_kind`),
KEY `idx_products_sell_order_sub_on_i_order_dept` (`i_order_dept`),
KEY `idx_products_sell_order_sub_on_time` (`time`),
KEY `idx_products_sell_order_sub_on_status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
这是我的表结构,我想让符合i_main_id相同的那些数据里面的i_size_01~~~i_size_18进行修改。