12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <h2>DESCRIPTION</h2>
- <em>db.dropcolumn</em> drops a column from an attribute table.
- If the <b>-f</b> force flag is not given then nothing is removed, instead
- a preview of the action to be taken is printed.
- <h2>NOTES</h2>
- <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.
- <h2>EXAMPLES</h2>
- Dropping a column (Spearfish):
- <p>
- <div class="code"><pre>
- # work on own copy
- g.copy vect=roads,myroads
- db.describe -c myroads
- # only shows what would happen:
- db.dropcolumn myroads column=label
- # actually drops the column
- db.dropcolumn -f myroads column=label
- 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>
- <h2>AUTHOR</h2>
- Markus Neteler
- <p><i>Last changed: $Date$</i>
|