tjawed
October 22nd, 2005, 02:20 PM
Okay so I am a complete noob to mysql.
I am trying to run the following statements in mysql query browser
DROP TABLE IF EXISTS `bedbugs`.`airports`;
CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`country` char(20) default NULL,
`name` char(20) NOT NULL default '',
PRIMARY KEY (`name`)
);
basically two different queries through one query window.
I get the following error:
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 ';
CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`cou' at line 1
Can someone explain what is going on. If I comment out either query - the other one runs fine (basically I can run one at a time).
Is this some sort of limitation of the query browser?
thanks in advance
I am trying to run the following statements in mysql query browser
DROP TABLE IF EXISTS `bedbugs`.`airports`;
CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`country` char(20) default NULL,
`name` char(20) NOT NULL default '',
PRIMARY KEY (`name`)
);
basically two different queries through one query window.
I get the following error:
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 ';
CREATE TABLE `bedbugs`.`airports` (
`city` char(20) default NULL,
`cou' at line 1
Can someone explain what is going on. If I comment out either query - the other one runs fine (basically I can run one at a time).
Is this some sort of limitation of the query browser?
thanks in advance