[GRASS-SVN] r36279 - grass/trunk/lib/db/sqlp
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Mon Mar  9 09:21:48 EDT 2009
    
    
  
Author: neteler
Date: 2009-03-09 09:21:48 -0400 (Mon, 09 Mar 2009)
New Revision: 36279
Modified:
   grass/trunk/lib/db/sqlp/sql.html
Log:
better document LIKE operator
Modified: grass/trunk/lib/db/sqlp/sql.html
===================================================================
--- grass/trunk/lib/db/sqlp/sql.html	2009-03-09 13:21:04 UTC (rev 36278)
+++ grass/trunk/lib/db/sqlp/sql.html	2009-03-09 13:21:48 UTC (rev 36279)
@@ -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