Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax error

Status
Not open for further replies.

jesmor

Programmer
Joined
May 3, 2003
Messages
3
Location
DE
Could somebody plase tell me what's wrong in this SQL statment?
DROP DATABASE CustomerDB;

CREATE DATABASE CustomerDB;

CONNECT CustomerDB;

CREATE TABLE address
(ID int(4) NOT NULL AUTO_INCREMENT PRIMARY KEY,
addressLine1 varchar(100) NOT NULL,
addressLine2 varchar(100) NULL,
city varchar(100) NOT NULL,
state_or_province varchar(100) NOT NULL,
zip_or_postalCode varchar(100) NOT NULL,
country varchar(100) NOT NULL);

Thanks
 
Have you tried changing the [tt]CONNECT[/tt] to [tt]USE[/tt]?

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top