Jump to content

Whats wrong with this?


roldahayes

Recommended Posts

Create Table PageType (
   TypeID int identity primary key,
   TypeDesc varChar(max)
)

Create Table Quotes (
   QuoteID int identity primary key,
   PageTypeID int not null foreign key references PageType,
   Quote nVarChar(max),
   Author nVarChar(300)
)

 

get this error...

 

#1064 - 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 'identity primary key,
   TypeDesc varChar(max)
)

Create Table Quotes (
   ' at line 2 

Link to comment
https://forums.phpfreaks.com/topic/114307-whats-wrong-with-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.