v.db.addcol1grass
Adds one or more columns to the attribute table connected to a given vector map.
Usage
v.db.addcol
v.db.addcol help
v.db.addcol map=name
[layer=integer]
columns=string
[--verbose]
[--quiet]
Keywords
vector, database, attribute table
Overview
v.db.addcol adds one or more column(s) to the attribute table connected to a given vector map. It automatically checks the connection for the specified layer.
Notes
v.db.addcol is a front-end to db.execute to allow easier usage. The supported types of columns depend on the database backend. However, all backends should support VARCHAR, INT, DOUBLE PRECISION and DATE. The default dbf backend supports only these types. The existing database connection(s) can be verified with v.db.connect.
Examples
Adding a single column:
v.db.addcol sentiero_brenta_points columns="slope double precision"
v.info -c sentiero_brenta_points
Adding two columns:
v.db.addcol sentiero_brenta_points columns="slope double precision,myname varchar(15)"
v.info -c sentiero_brenta_points
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.