· 7 years ago · Feb 20, 2019, 09:02 PM
1mysql> ALTER TABLE `players` ADD COLUMN `num` VARCHAR(10) NOT NULL DEFAULT '0'
2 -> ALTER TABLE `players` ADD COLUMN `contact` TEXT NULL DEFAULT NULL
3 -> ALTER TABLE `players` ADD COLUMN `sms` INT(10) NOT NULL DEFAULT '0'
4 -> ALTER TABLE `players` ADD COLUMN `appel` INT(10) NOT NULL DEFAULT '0'
5 -> CREATE TABLE IF NOT EXISTS `cellphone` ( `pid` varchar(64) NOT NULL, `name` varchar(32) NOT NULL, `messages` text NOT NULL, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
61064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `players` ADD COLUMN `contact` TEXT NULL DEFAULT NULL
7
8ALTER TABL' at line 3
9mysql>