How to run more statements in one query? E.g.
-- TABLE users --
CREATE TABLE `DTB`.`table1` (
`id` int(11) NOT NULL auto_increment,
...
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1
CREATE TABLE `DTB`.`table2` (
`id` int(11) NOT NULL auto_increment,
...
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=cp1250
INSERT INTO `DTB`.`table1` VALUES
...
INSERT INTO `DTB`.`table2` VALUES
...
I’m able to run each statements separately and it works, but I’m not able to create one sql script which creates whole database.
You need to separate each query by
;So this will not work:
but this will: