Raised This Month: $ Target: $400
 0% 

Query issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Annihilator
Senior Member
Join Date: Nov 2006
Location: Lithuania
Old 02-14-2012 , 17:32   Query issue
Reply With Quote #1

Hello, I've been coding a plugin that uses sqlite and ran into a problem:

Code:
Query failed! column mapas is not unique
So far I only know the db is created and that some info gets added to the db, but I'm unsure if all of it is added and it's most likely that it's not loaded when needed.

Any Idea what could be causing it?

Last edited by Annihilator; 02-14-2012 at 17:35.
Annihilator is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 02-14-2012 , 17:57   Re: Query issue
Reply With Quote #2

That's normal if you have unique columns.
Try to use a query like that.
PHP Code:
INSERT OR IGNORE INTO table xxx 
Yours sincerely
Impact
__________________

Last edited by Impact123; 02-14-2012 at 17:59.
Impact123 is offline
Reply



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 20:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode