Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2013, 11:06 AM
Registered User
 
Join Date: Sep 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default my sql syntax error ???

here is my code:

Code:
CREATE TABLE people (
				people_id 				INTEGER 		UNSIGNED		NOT NULL 		AUTO_INCREMENT,
				people_fullname			VARCHAR(255) 	UNSIGNED		NOT NULL,
				people_isactor			TINYINT(1) 		UNSIGNED		NOT NULL 		DEFAULT 0,
				people_isdirector 		TINYINT(1)		UNSIGNED		NOT NULL 		DEFAULT 0,

				PRIMARY KEY (people_id)
				)
				ENGINE=MyISAM'
it returns a 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 'UNSIGNED NOT NULL, people_isactor TINYINT(1) UNSIGNED NOT NULL DEFAU' at line 3';
where is my error ???





Similar Threads
Thread Thread Starter Forum Replies Last Post
You have an error in your SQL syntax; dhillon555 Beginning PHP 1 June 5th, 2009 09:56 AM
Error in SQL syntax phantom3008 ASP.NET 1.0 and 1.1 Basics 1 April 26th, 2007 07:00 AM
Example SQL causes syntax error Tom Rigby BOOK: Beginning SQL 1 April 18th, 2007 09:32 AM
SQL Syntax Error I can't figure out Syster Tara Classic ASP Basics 24 December 2nd, 2006 05:09 PM
Syntax error on SQL statement Chris1 Access VBA 1 September 7th, 2004 07:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.