db.dropcolumn(1grass) | GRASS GIS User's Manual | db.dropcolumn(1grass) |
db.dropcolumn - Drops a column from selected attribute table.
database, attribute table
db.dropcolumn
db.dropcolumn --help
db.dropcolumn [-f] table=name
column=name [--help] [--verbose]
[--quiet] [--ui]
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.
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.
Dropping a column (North Carolina sample dataset):
# work on own copy g.copy vect=roadsmajor,myroads db.describe -c myroads # only shows what would happen: db.dropcolumn myroads column=SHAPE_LEN # actually drops the column db.dropcolumn -f myroads column=SHAPE_LEN db.describe -c myroads
db.describe, db.droptable, db.execute, v.db.dropcolumn, GRASS SQL interface
Markus Neteler
Available at: db.dropcolumn source code (history)
Accessed: Sunday Jan 22 07:37:41 2023
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
© 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
GRASS 8.2.1 |