[GRASS-SVN] r36278 - grass/branches/releasebranch_6_4/lib/db/sqlp
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 9 09:21:04 EDT 2009
Author: neteler
Date: 2009-03-09 09:21:04 -0400 (Mon, 09 Mar 2009)
New Revision: 36278
Modified:
grass/branches/releasebranch_6_4/lib/db/sqlp/description.html
Log:
better document LIKE operator
Modified: grass/branches/releasebranch_6_4/lib/db/sqlp/description.html
===================================================================
--- grass/branches/releasebranch_6_4/lib/db/sqlp/description.html 2009-03-09 13:20:53 UTC (rev 36277)
+++ grass/branches/releasebranch_6_4/lib/db/sqlp/description.html 2009-03-09 13:21:04 UTC (rev 36278)
@@ -90,6 +90,13 @@
<p>Example of pattern matching:
<div class="code"><pre>
+
+# field contains string:
+# for DBF driver:
+v.extract rivers out=rivers_noce where="DES LIKE 'NOCE'"
+# for SQLite driver:
+v.extract rivers out=rivers_noce where="DES LIKE '%NOCE%'"
+
# match exactly number of characters (here: 2), does not work for DBF driver:
v.db.select mysites where="id LIKE 'P__'"
More information about the grass-commit
mailing list