6
I am programming for Android and using the native database(SQLite
).
I want to make a query in the product table ordered by name, but while doing the SELECT
thus:
SELECT * FROM produtos ORDER BY nome;
it returns, for example:
Alvejante
Cloro
Sabão Liquido
Água Sanitária
I want the SELECT
ignore the score and get the following return:
Água Sanitária
Alvejante
Cloro
Sabão Liquido
It is possible to do this?
Try it straight like this:
...ORDER BY nome COLLATE utf8_general_ci;
. If it doesn’t work, try to change the LEOTARD from the bank to what I put in the query.– Diego Souza
was testing this solution.. knew it worked on
where
, I went to validate atorder by
.. =p– rLinhares
I tried your solution Diego, but Android Studio claimed "no such collation Sequence: utf8_general_ci", anyway, thank you.
– Blaack