-2
我將下面的mysql更改代碼通過phpmyadmin逐個放入數據庫,它工作正常,有沒有人可以幫助我如何一次把它放在一起?或者您是否知道可以執行它的PHP代碼示例?請讓我知道。mysql更改爲表
ALTER TABLE `user` ADD `title`
varchar(16) COLLATE utf8_bin NOT NULL DEFAULT '' AFTER `user_id`
ALTER TABLE `customer` ADD `title`
varchar(16) COLLATE utf8_bin NOT NULL DEFAULT '' AFTER `customer_id`;
ALTER TABLE `customer` ADD `date_birtdate` datetime NOT NULL
DEFAULT '0000-00-00 00:00:00' AFTER `lastname`;
ALTER TABLE `customer` ADD `security_question` varchar(96) COLLATE utf8_bin
NOT NULL DEFAULT '' AFTER `fax`;
ALTER TABLE `customer` ADD `security_answer` varchar(96) COLLATE utf8_bin
NOT NULL DEFAULT '' AFTER `fax`;
ALTER TABLE `customer` ADD `pin_number` text COLLATE utf8_bin AFTER `password`;
ALTER TABLE `customer` ADD `notes` text COLLATE utf8_bin AFTER `bank_number`;
ALTER TABLE `customer` ADD `last_active` datetime NOT NULL
DEFAULT '0000-00-00 00:00:00' AFTER `date_added`;
您希望我們爲您重新格式化一些文本嗎?這不是懶惰的定義?你可以自己做。這裏有一個提示:`str_replace('ALTER TABLE customer',',',$ query)`。 – 2011-02-15 15:28:16
-1沒有正確格式化你的SQL – ajreal 2011-02-15 16:16:13