Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2006, 01:09 PM
Moonracer
Fire Beetle
 
Join Date: Oct 2006
Posts: 1
Default SQL syntax error

--------------------------------------------------------------------------
when using:

INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, '192.168.0.22')

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 ' 0, 0, 0, 0, 192.168.0.22)' at line 1 1064
--------------------------------------------------------------------------

Worktruck, I got this same error. You may have already fixed this, but I'm going to put in what worked for me in case anyone else has this issue. To fix this error I used:

INSERT INTO account VALUES (1, 'Admin', '', 0, 'mini', 250, '', 0, 0, 0, 0, '192.168.0.22');

I needed account instead of accounts (my db was using this word). I needed to send an empty string in the seventh field (did I leave strict mode on?). I also put in a semicolon at the end of the command.

I hope this helps anyone out there that's stuck.

Moonracer
Reply With Quote
  #2  
Old 11-01-2006, 02:46 PM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,474
Default

Those are Two Single quotes put together - for those that wonder what the " is. It looks like (dbl quote) '' or (two songle quote) " - similar but wrong.Mysql can use either for strings, but they must be two of each to encapsulate a string. Numeric variables can use 2 single quotes

Just FYI
GeorgeS

The MySQL King
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
Reply

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 On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:46 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3