This is a discussion on "[SOLVED] error in SQL syntax but where it all looks fine to me" within the Databases section. This forum, and the thread "[SOLVED] error in SQL syntax but where it all looks fine to me are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] error in SQL syntax but where it all looks fine to me
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] error in SQL syntax but where it all looks fine to me
insert into skills (Account, Name, Alchemy, Blacksmithing, Bowcraft, Carpentry, Cooking, Fishing, Healing, Herding, Lockpicking, Lumberjacking, Magery, Meditation, Mining, Musicianship, Removetrap, MagicResistance, Snooping, Stealing, Stealth, Tailoring, Tinkering, Veterinary, Str, Dex, Int, Level, Exp) VALUES ('<account>', '<NAME>', '<Alchemy>', '<Blacksmithing>', '<Bowcraft>', '<Carpentry>', '<Cooking>', '<Fishing>', '<Healing>', '<Herding>', '<Lockpicking>', '<Lumberjacking>', '<Magery>', '<Meditation>', '<Mining>', '<Musicianship>', '<Removetrap>', '<MagicResistance>', '<Snooping>', '<Stealing>', '<Stealth>', '<Tailoring>', '<Tinkering>', '<Veterinary>', '<str>', '<dex>', '<int>', '<eval <tag0.Level>>', '<eval <tag0.tix>>');"
ERROR:MySQL query "insert into skills (Account, Name, Alchemy, Blacksmithing, Bowcraft, Carpentry, Cooking, Fishing, Healing, Herding, Lockpicking, Lumberjacking, Magery, Meditation, Mining, Musicianship, Removetrap, MagicResistance, Snooping, Stealing, Stealth, Tailoring, Tinkering, Veterinary, Str, Dex, Int, Level, Exp) VALUES ('drewwales', 'Anderson', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.7', '30.0', '30.0', '0.0', '400.0', '400.0', '30.0', '30.0', '30.0', '30.0', '30.0', '30.0', '400', '200', '100', '89', '9');" failed due to "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 'Int, Level, Exp) VALUES ('drewwales', 'Anderson', '30.0', '30.0', '30.0', '30.0'' at line 1" where is the error it all looks fine to me |
|
|
|
#2
|
|||
|
|||
|
Re: error in SQL syntax but where it all looks fine to me
Solved
|
|
#3
|
||||
|
||||
|
Re: error in SQL syntax but where it all looks fine to me
Nice one! May i ask what <Removetrap> things like that are??
__________________
Marc Staff Manager - Webforumz.com Want to be a moderator? PM me. |
|
#4
|
|||
|
|||
|
Re: [SOLVED] error in SQL syntax but where it all looks fine to me
I think it is the value that will be replacing the particular field in the database. In asp it will be like this:
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| syntax error... | ktsirig | Databases | 2 | Feb 4th, 2007 14:48 |
| Annoying little syntax error | adeking | Web Page Design | 4 | Aug 9th, 2006 13:50 |
| Working fine but giving error | clickme_not | JavaScript Forum | 3 | Apr 28th, 2006 18:36 |
| error in SQL syntax | Drgreenfingers | Databases | 10 | Jan 30th, 2006 02:00 |
| syntax error: unexpected T_BOOLEAN_AND... | jswebdev | PHP Forum | 4 | Jan 28th, 2006 07:29 |