[GRASS-SVN] r34505 - grass/branches/develbranch_6/db/base
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 26 14:30:58 EST 2008
Author: neteler
Date: 2008-11-26 14:30:58 -0500 (Wed, 26 Nov 2008)
New Revision: 34505
Modified:
grass/branches/develbranch_6/db/base/db.execute.html
Log:
table join example added
Modified: grass/branches/develbranch_6/db/base/db.execute.html
===================================================================
--- grass/branches/develbranch_6/db/base/db.execute.html 2008-11-26 19:30:47 UTC (rev 34504)
+++ grass/branches/develbranch_6/db/base/db.execute.html 2008-11-26 19:30:58 UTC (rev 34505)
@@ -92,6 +92,12 @@
cat file.sql | db.execute
</pre></div>
+<P>
+<em>Join table 'myroads' into table 'extratab' based on common 'cat' column values (not supported by DBF driver):<br>
+<div class="code"><pre>
+echo "UPDATE extratab SET names=(SELECT label FROM myroads WHERE extratab.cat=myroads.cat);" | db.execute
+</pre></div>
+
<h2>SEE ALSO</h2>
<em><a HREF="db.columns.html">db.columns</a>,
<a HREF="db.describe.html">db.describe</a>,
More information about the grass-commit
mailing list