v.db.dropcolumn.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <h2>DESCRIPTION</h2>
  2. <em>v.db.dropcolumn</em> drops a column from the attribute table connected
  3. to a given vector map. It automatically checks the connection for the specified
  4. layer. <em>v.db.dropcolumn</em> omits to delete the 'cat' column which is
  5. relevant to keep the connection between vector map and table.
  6. <h2>NOTES</h2>
  7. <em>v.db.dropcolumn</em> is a front-end to <em>db.execute</em> to allow easier usage.
  8. <p>The existing database connection(s) can be verified with <em>v.db.connect</em>.
  9. <h2>EXAMPLES</h2>
  10. Dropping a column:<br>
  11. <div class="code"><pre>
  12. g.copy vect=roadsmajor,myroads
  13. v.info -c myroads
  14. v.db.dropcolumn myroads column=SHAPE_LEN
  15. v.info -c myroads
  16. </pre></div>
  17. <h2>SEE ALSO</h2>
  18. <em>
  19. <a href="db.connect.html">db.connect</a>,
  20. <a href="db.dropcolumn.html">db.dropcolumn</a>,
  21. <a href="db.execute.html">db.execute</a>,
  22. <a href="v.db.addcolumn.html">v.db.addcolumn</a>,
  23. <a href="v.db.connect.html">v.db.connect</a>,
  24. <a href="v.db.droptable.html">v.db.droptable</a>,
  25. <a href="v.db.select.html">v.db.select</a>,
  26. <a href="v.db.update.html">v.db.update</a><br>
  27. <a href="sql.html">GRASS SQL interface</a>
  28. </em>
  29. <h2>AUTHOR</h2>
  30. Markus Neteler
  31. <p><i>Last changed: $Date$</i>