If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > New Members & Introductions > Syntax error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-12, 23:25
tahiti_rose tahiti_rose is offline
Registered User
 
Join Date: Jan 2012
Posts: 1
Syntax error

Hi, I'm just starting a web design course (basic) and have to create a database with 2 tables. I have done the the following on the first table, but come up with "syntax error in CREATE TABLE statement". Where have I gone wrong?

CREATE TABLE Employee
(
EMP_ID int PRIMARY KEY,
Location CHAR(255),
FirstName CHAR(255),
Surname CHAR(255);

Do I have spaces where there shouldn't be, for example?
Reply With Quote
  #2 (permalink)  
Old 01-15-12, 05:41
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,538
Quote:
Originally Posted by tahiti_rose View Post
Do I have spaces where there shouldn't be, for example?
nope, the spaces are okay

the parentheses aren't, however

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On