.TH v.db.addcol 1grass "" "GRASS 6.4.4" "Grass User's Manual" .SH NAME \fI\fBv.db.addcol\fR\fR - Adds one or more columns to the attribute table connected to a given vector map. .SH KEYWORDS vector, database, attribute table .SH SYNOPSIS \fBv.db.addcol\fR .br \fBv.db.addcol help\fR .br \fBv.db.addcol map\fR=\fIname\fR [\fBlayer\fR=\fIinteger\fR] \fBcolumns\fR=\fIstring\fR [\-\-\fBverbose\fR] [\-\-\fBquiet\fR] .SS Parameters: .IP "\fBmap\fR=\fIname\fR" 4m .br Name of vector map for which to edit attribute table .IP "\fBlayer\fR=\fIinteger\fR" 4m .br Layer number where to add column(s) .br A single vector map can be connected to multiple database tables. This number determines which table to use. .br Default: \fI1\fR .IP "\fBcolumns\fR=\fIstring\fR" 4m .br Name and type of the new column(s) ('name type [,name type, ...]') .br Data types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and DATE .PP .SH DESCRIPTION \fIv.db.addcol\fR 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. .SH NOTES v.db.addcol is a front-end to \fIdb.execute\fR 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 \fIv.db.connect\fR. .SH EXAMPLES Adding a single column: .br \fC .DS .br v.db.addcol sentiero_brenta_points columns="slope double precision" .br v.info \-c sentiero_brenta_points .br .DE \fR .PP Adding two columns: .br \fC .DS .br v.db.addcol sentiero_brenta_points columns="slope double precision,myname varchar(15)" .br v.info \-c sentiero_brenta_points .br .DE \fR .SH SEE ALSO \fIdb.execute\fR, \fIv.db.addtable\fR, \fIv.db.connect\fR, \fIv.db.dropcol\fR, \fIv.db.droptable\fR, \fIv.db.select\fR, \fIv.db.update\fR, .br \fIGRASS SQL interface\fR .SH AUTHOR Moritz Lennert (mlennert@club.worldonline.be) .PP \fILast changed: $Date: 2010-03-21 18:19:18 +0100 (Sun, 21 Mar 2010) $\fR .PP Full index .PP © 2003-2014 GRASS Development Team