Blogger Information
Blog 14
fans 0
comment 0
visits 17731
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mysql给表批量新增字段
echo_下宇的博客
Original
1114 people have browsed it

点击查看完整全文 :http://www.3qphp.com/mysql/sql/108.html

方法一

 

这里可以使用事务

 

begin;                                                  //事务开始
alter table em_day_data add f_day_house7 int(11);
alter table em_day_data add f_day_house8 int(11);
alter table em_day_data add f_day_house9 int(11);
alter table em_day_data add f_day_house10 int(11);
commit;                                             //提交事务,事务结束

 

事务(transaction)是由一系列操作序列构成的程序执行单元,这些操作要么都做,要么都不做,是一个不可分割的工作单位。

 

方法二 

点击查看完整全文 :转载于 http://www.3qphp.com/mysql/sql/108.html


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post