db.dropcol(1grass)

db.dropcol1grass

Drops a column from selected attribute table

Usage

db.dropcol

db.dropcol help

db.dropcol [-f] table=name column=string [--verbose] [--quiet]

Keywords

database, attribute table

Overview

db.dropcol drops a column from an attribute table. If the -f force flag is not given then nothing is removed, instead a preview of the action to be taken is printed.

Notes

db.dropcol is a front-end to db.execute to allow easier usage with a special workaround for the SQLite driver to support column drop.

Examples

Dropping a column (Spearfish):

# work on own copy
g.copy vect=roads,myroads
db.describe -c myroads

# only shows what would happen:
db.dropcol myroads column=label

# actually drops the column
db.dropcol -f myroads column=label

db.describe -c myroads

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7
  3. 8

Author

Markus Neteler

Last changed: $Date: 2011-11-08 10:42:51 +0100 (Tue, 08 Nov 2011) $

Full index

© 2003-2014 GRASS Development Team

From grass-doc 6.4.4-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.