I have a string:
CREATE TABLE IF NOT EXISTS `coupons` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) NOT NULL,
`off` int(11) NOT NULL,
`order` int(11) NOT NULL,
`value` tinyint(1) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
CREATE TABLE `currency` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(10) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`prefix` varchar(12) DEFAULT NULL,
`suffix` varchar(12) DEFAULT NULL,
`format` char(1) DEFAULT NULL,
`decimals` char(1) DEFAULT NULL,
`exchange` float(15,6) DEFAULT NULL,
`round` int(5) NOT NULL,
`published` tinyint(1) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
And would like to replace: "CREATE TABLE" to "CREATE TABLE IF NOT EXISTS". How can I do this?
Thanks!