db.dropcolumn.html 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <h2>DESCRIPTION</h2>
  2. <em>db.dropcolumn</em> drops a column from an attribute table.
  3. If the <b>-f</b> force flag is not given then nothing is removed, instead
  4. a preview of the action to be taken is printed.
  5. <h2>NOTES</h2>
  6. <em>db.dropcolumn</em> is a front-end to <em>db.execute</em> to allow easier
  7. usage with a special workaround for the SQLite driver to support column
  8. drop.
  9. <h2>EXAMPLES</h2>
  10. Dropping a column (Spearfish):
  11. <p>
  12. <div class="code"><pre>
  13. # work on own copy
  14. g.copy vect=roads,myroads
  15. db.describe -c myroads
  16. # only shows what would happen:
  17. db.dropcolumn myroads column=label
  18. # actually drops the column
  19. db.dropcolumn -f myroads column=label
  20. db.describe -c myroads
  21. </pre></div>
  22. <h2>SEE ALSO</h2>
  23. <em><a HREF="db.droptable.html">db.droptable</a></em>,
  24. <em><a HREF="db.execute.html">db.execute</a></em>,
  25. <em><a HREF="v.db.dropcolumn.html">v.db.dropcolumn</a></em>
  26. <h2>AUTHOR</h2>
  27. Markus Neteler
  28. <p><i>Last changed: $Date$</i>