GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
db.dropcolumn(1) GRASS GIS User's Manual db.dropcolumn(1)

db.dropcolumn - Drops a column from selected attribute table.

database, attribute table

db.dropcolumn
db.dropcolumn --help
db.dropcolumn [-f] table=name column=name [database=name] [driver=name] [--help] [--verbose] [--quiet] [--ui]


Force removal (required for actual deletion of files)

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of attribute table

Name of attribute column

Name of database

Name of database driver
Options: dbf, odbc, ogr, sqlite, pg

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)

Latest change: Wednesday Feb 28 18:00:11 2024 in commit: d33427c1a144bf2463c7610e45a9f4679b2e9b3e

Main index | Database index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

GRASS 8.4.1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.