hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : MySQL Error
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

MySQL Error

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2002, 10:01 PM
Falco1199 Falco1199 is offline
WHT Addict
 
Join Date: Apr 2002
Location: Cube Galaxy HQ
Posts: 104

MySQL Error


My friend is using phpMyAdmin to enter a MySQL query, but gets an error and doesn't understand it. I'm posting here for his lack of having an account.

The query:

CREATE TABLE smp_source (
sID int(11) NOT NULL auto_increment,
name varchar(40) default NULL,
version varchar(25) default NULL,
daterel datetime default NULL,
description blob,
notes blob,
filename blob,
clss varchar(20) not null,
license varchar(30)
pID int,
PRIMARY KEY (sID)
) TYPE=MyISAM

The error:

You have an error in your SQL syntax near 'pID int,
PRIMARY KEY (sID)
) TYPE=MyISAM' at line 11

Does anybody see the problem?

__________________
:-D

Reply With Quote


Sponsored Links
  #2  
Old 09-21-2002, 11:38 PM
JustinH JustinH is offline
Web Hosting Master
 
Join Date: Nov 2000
Posts: 3,042
license varchar(30) is missing the "," . Generally speaking when you get an error on a line like that in MySQL (and in PHP generally) it means you forgot to escape the previous line.

__________________
A well-reasoned assumption is very close to fact.
- Adorno


Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51
Parallels Now Offering Licenses for CloudLinux OS Web Hosting News 2011-10-26 17:29:25
Web Hosting Sales and Promos Roundup - October 7, 2011 Web Hosting News 2011-10-07 19:56:18
Web Hosting Software Firm CloudLinux Releases CloudLinux OS Version 6.1 Web Hosting News 2011-09-13 14:08:49
Web Host FireHost Partners with Cloud Security Firm Gazzang for Data Encryption Web Hosting News 2011-08-16 20:33:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?