Browse Source

examples updated

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48087 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 13 years ago
parent
commit
3931612c2f

+ 13 - 2
db/db.drivers/db.drivers.html

@@ -2,15 +2,26 @@
 
 <em>db.drivers</em> lists all database drivers. 
 
+<h2>EXAMPLE</h2>
+
+Show all installed GRASS database drivers:
+<p>
+<div class="code"><pre>
+db.drivers -p
+</pre></div>
+
 <h2>SEE ALSO</h2>
-<em><a HREF="db.connect.html">db.connect</a>,
+
+<em>
+<a HREF="db.connect.html">db.connect</a>,
 <a HREF="db.describe.html">db.describe</a>,
 <a HREF="db.drivers.html">db.drivers</a>,
 <a HREF="db.droptable.html">db.droptable</a>,
 <a HREF="db.execute.html">db.execute</a>,
 <a HREF="db.login.html">db.login</a>,
 <a HREF="db.tables.html">db.tables</a>,
-<a HREF="sql.html">GRASS SQL interface</a></em>
+<a HREF="sql.html">GRASS SQL interface</a>
+</em>
 
 <h2>AUTHOR</h2>
 

+ 13 - 10
scripts/db.dropcolumn/db.dropcolumn.html

@@ -8,32 +8,35 @@ a preview of the action to be taken is printed.
 
 <em>db.dropcolumn</em> is a front-end to <em>db.execute</em> to allow easier
 usage with a special workaround for the SQLite driver to support column
-drop.
+drop also for SQLite tables.
 
-<h2>EXAMPLES</h2>
+<h2>EXAMPLE</h2>
 
-Dropping a column (Spearfish):
+Dropping a column (North Carolina sample dataset):
 <p>
 <div class="code"><pre>
 # work on own copy
-g.copy vect=roads,myroads
+g.copy vect=roadsmajor,myroads
 db.describe -c myroads
 
 # only shows what would happen:
-db.dropcolumn myroads column=label
+db.dropcolumn myroads column=SHAPE_LEN
 
 # actually drops the column
-db.dropcolumn -f myroads column=label
+db.dropcolumn -f myroads column=SHAPE_LEN
 
 db.describe -c myroads
 </pre></div>
 
 <h2>SEE ALSO</h2>
 
-<em><a HREF="db.droptable.html">db.droptable</a></em>,
-<em><a HREF="db.execute.html">db.execute</a></em>,
-<em><a HREF="v.db.dropcolumn.html">v.db.dropcolumn</a></em>
-
+<em>
+<a HREF="db.describe.html">db.describe</a>,
+<a HREF="db.droptable.html">db.droptable</a>,
+<a HREF="db.execute.html">db.execute</a>,
+<a HREF="v.db.dropcolumn.html">v.db.dropcolumn</a>,
+<a HREF="sql.html">GRASS SQL interface</a>
+</em>
 
 <h2>AUTHOR</h2>
 

+ 2 - 2
scripts/db.droptable/db.droptable.html

@@ -12,8 +12,8 @@ to avoid accidential table removal.
 
 <h2>EXAMPLE</h2>
 
-Remove an attribute table:<br>
-
+Removing an attribute table:
+<p>
 <div class="code"><pre>
 # show available tables
 db.tables -p

+ 11 - 1
scripts/db.test/db.test.html

@@ -4,9 +4,19 @@
 set of SQL queries. Database must exist and connection must be set
 by db.connect.
 
+<h2>EXAMPLE</h2>
+
+Test current SQL backend driver:
+<p>
+<div class="code"><pre>
+db.connect -p
+db.test test=test1
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
-<em><a HREF="sql.html">GRASS SQL interface</a>,
+<em>
+<a HREF="sql.html">GRASS SQL interface</a>,
 <a HREF="db.connect.html">db.connect</a>,
 <a HREF="db.describe.html">db.describe</a>,
 <a HREF="db.drivers.html">db.drivers</a>