GRASS logo

NAME

v.db.dropcolumn - Drops a column from the attribute table connected to a given vector map.

KEYWORDS

vector, database, attribute table

SYNOPSIS

v.db.dropcolumn
v.db.dropcolumn help
v.db.dropcolumn map=name [layer=integer] column=string [--verbose] [--quiet]

Parameters:

map=name
Vector map for which to drop attribute column
layer=integer
Layer where to drop column
Default: 1
column=string
Name of the column to drop

DESCRIPTION

v.db.dropcolumn drops a column from the attribute table connected to a given vector map. It automatically checks the connection for the specified layer. v.db.dropcolumn omits to delete the 'cat' column which is relevant to keep the connection between vector map and table.

NOTES

v.db.dropcolumn is a front-end to db.execute to allow easier usage. The existing database connection(s) can be verified with v.db.connect.

EXAMPLES

Dropping a column:
v.db.dropcolumn sentiero_brenta_points column=slope
v.info -c sentiero_brenta_points

SEE ALSO

db.droptable, db.execute, v.db.addcolumn, v.db.addtable, v.db.connect, v.db.droptable, v.db.select, v.db.update

AUTHOR

Markus Neteler

Last changed: $Date: 2011-01-14 14:11:41 -0800 (Fri, 14 Jan 2011) $


Main index - vector index - Full index

© 2003-2011 GRASS Development Team