SQL QUERIES

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: SQL QUERIES

Re: SQL QUERIES

Post by MMuser2011 » Tue Jun 19, 2012 9:49 am

Please login to the forum, otherwise all your posts are labeled with "Guest" :wink:

Unfortunately, I have no idea how to use SQLite3_CreateCollation16(). Everything I know, you already found in this thread viewtopic.php?f=2&t=25637&p=144852 :oops:

Re: SQL QUERIES

Post by Guest » Tue Jun 19, 2012 9:37 am

Yes that's the case.

I need to use COLLATE NOCASE all over.

How does SQLite3_CreateCollation16() work, that i don't need to send it within my sql queries?

Re: SQL QUERIES

Post by MMuser2011 » Tue Jun 19, 2012 9:26 am

Maybe it is a collation and UNICODE Issue?
Do you get NOTHING as result or wrong entries?

Re: SQL QUERIES

Post by Guest » Tue Jun 19, 2012 4:28 am

How can is use a script extension within a plugin?

Still i need to know why it's not working.

Re: SQL QUERIES

Post by Guest » Tue Jun 19, 2012 4:21 am

Use this extension:
viewtopic.php?f=2&t=24841

SQL QUERIES

Post by Tomster » Tue Jun 19, 2012 4:16 am

Hey,

i'm trying different sql queries, but it seems that most of them are not working. I can select for instance all from Artists

SELECT * FROM ARTISTS

and it works well.

What does not work is the following:

SELECT * FROM ARTISTS WHERE Artist = 'a-ha'

I do need to use LIKE instead?

SELECT * FROM ARTISTS WHERE Artist LIKE 'a-ha'

It does work with the ID in both ways.

SELECT * FROM ARTISTS WHERE ID = 0
SELECT * FROM ARTISTS WHERE ID LIKE 0

The same thing happens to ORDER BY and all stuff regarding not table column 0.

So

SELECT * FROM ARTISTS ORDER BY ID

works,

SELECT * FROM ARTISTS ORDER BY Artist

does not.

So i have no idea why it's all working with column 0 of every table, but not with any other?

I'm using sqlite directly within a general plugin( sllite3.c )

Top