|
@@ -7,29 +7,35 @@ a preview of the action to be taken is printed.
|
|
|
<h2>NOTES</h2>
|
|
|
|
|
|
<em>db.droptable</em> is a front-end to <em>db.execute</em> to allow easier
|
|
|
-usage. To some extent it is verified if the table is connected to a vector map.
|
|
|
+usage. To some extent it is verified if the table is connected to a vector map
|
|
|
+to avoid accidential table removal.
|
|
|
|
|
|
-<h2>EXAMPLES</h2>
|
|
|
+<h2>EXAMPLE</h2>
|
|
|
+
|
|
|
+Remove an attribute table:<br>
|
|
|
|
|
|
-Dropping a table (Spearfish):
|
|
|
-<p>
|
|
|
<div class="code"><pre>
|
|
|
-# work on own copy
|
|
|
-g.copy vect=roads,myroads
|
|
|
+# show available tables
|
|
|
+db.tables -p
|
|
|
|
|
|
-# only shows what would happen
|
|
|
-db.droptable myroads
|
|
|
+# this will show what would happen
|
|
|
+db.droptable table=sometable
|
|
|
|
|
|
# actually drop the table
|
|
|
-db.droptable -f myroads
|
|
|
-
|
|
|
-db.tables -p
|
|
|
+db.droptable -f sometable
|
|
|
</pre></div>
|
|
|
|
|
|
<h2>SEE ALSO</h2>
|
|
|
|
|
|
-<em><a HREF="db.execute.html">db.execute</a></em>,
|
|
|
-<em><a HREF="v.db.droptable.html">v.db.droptable</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="db.login.html">db.login</a>,
|
|
|
+<a HREF="db.tables.html">db.tables</a>,
|
|
|
+<a HREF="v.db.droptable.html">v.db.droptable</a>,
|
|
|
+<a HREF="sql.html">GRASS SQL interface</a>
|
|
|
+</em>
|
|
|
|
|
|
<h2>AUTHOR</h2>
|
|
|
|