db.dropcolumn(1grass)

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 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

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.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

Markus Neteler

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.