Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > BOOK: Beginning SQL
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning SQL
This is the forum to discuss the Wrox book Beginning SQL by Paul Wilton, John Colby; ISBN: 9780764577321
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SQL section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old December 20th, 2005, 12:28 AM
Registered User
Join Date: Dec 2005
Location: Burbank, CA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Example SQL causes syntax error

When executing the CREATE TABLE SQL's in Chapter 11, page 303, MySQL fails with "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 (1, 1) NOT NULL,
Format char (10))' at line 2"

It does not appear to recognize "IDENTITY" as a key-word. Is there a different syntax for MySQL?
  #2 (permalink)  
Old April 18th, 2007, 09:32 AM
Registered User
Join Date: Apr 2007
Location: mumbai, maharashtra, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

i think it is normally same.

try this

use dbname;
create tblname (
var char id ,
var char age,
id primar key);

web programmer

Thread Tools
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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in SQL syntax phantom3008 ASP.NET 1.0 and 1.1 Basics 1 April 26th, 2007 07:00 AM
SQL syntax error - Chapter 3 cutthroatchemist BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 January 15th, 2007 05:19 PM
SQL Syntax Error I can't figure out Syster Tara Classic ASP Basics 24 December 2nd, 2006 04:09 PM
Syntax error on SQL statement Chris1 Access VBA 1 September 7th, 2004 07:47 AM
$sql="CREATE TABLE syntax error cedtech23 Beginning PHP 3 August 24th, 2004 04:56 AM

All times are GMT -4. The time now is 07:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.