[GRASSLIST:5918] grass60 sql interface and like keyword
Jean-Denis Giguere
jdenisgiguere at fastmail.fm
Sun Feb 27 13:28:15 EST 2005
Hi !
I'm interesting to know how you "simulate" the like keyword within the
grass60 sql interface.
Two easy based on an exemple of GRASS doc
(http://gulus.usherb.ca/pub/appl/grass/grass60/manuals/html60_user/sql.html):
SELECT * FROM archsites WHERE str1 like 'No Name';
|-> echo "SELECT * FROM archsites WHERE str1 = 'No Name'" | db.select
SELECT * FROM archsites WHERE str1 like '%No Name%';
|-> echo "SELECT * FROM archsites WHERE str1 ~ 'No Name'" | db.select
But:
SELECT * FROM archsites WHERE str1 like '%No Name';
|->
SELECT * FROM archsites WHERE str1 like 'No Name%';
|->
Greetings,
Jean-Denis
--
Jean-Denis Giguère
Étudiant en géomatique
appliquée à l'environnement
Stagiaire à l'Agence de développement
de réseaux locaux de services de santé
et de services sociaux de l'Estrie
Tél. 829-3400 42008
Courriel. jdenisgiguere at fastmail.fm
More information about the grass-user
mailing list