db.dropcolumn1grass
Drops a column from selected attribute table.
Usage
db.dropcolumn
db.dropcolumn --help
db.dropcolumn [-f]
table=name
column=name
[database=name]
[driver=name]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
database, attribute table
Overview
db.dropcolumn 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.dropcolumn is a front-end to db.execute to allow easier usage with a special workaround for the SQLite driver to support column drop also for SQLite tables.
Examples
Dropping a column (North Carolina sample dataset):
# work on own copyg.copy vect=roadsmajor,myroadsdb.describe -c myroads# only shows what would happen:db.dropcolumn myroads column=SHAPE_LEN# actually drops the columndb.dropcolumn -f myroads column=SHAPE_LENdb.describe -c myroads
Source code
Available at: db.dropcolumn source code (history)
Accessed: Monday Feb 24 17:51:43 2025
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.