[GRASS-SVN] r36277 - grass/branches/develbranch_6/lib/db/sqlp
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 9 09:20:54 EDT 2009
Author: neteler
Date: 2009-03-09 09:20:53 -0400 (Mon, 09 Mar 2009)
New Revision: 36277
Modified:
grass/branches/develbranch_6/lib/db/sqlp/description.html
Log:
better document LIKE operator
Modified: grass/branches/develbranch_6/lib/db/sqlp/description.html
===================================================================
--- grass/branches/develbranch_6/lib/db/sqlp/description.html 2009-03-09 09:24:01 UTC (rev 36276)
+++ grass/branches/develbranch_6/lib/db/sqlp/description.html 2009-03-09 13:20:53 UTC (rev 36277)
@@ -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