DOKK / manpages / debian 10 / grass-doc / db.columns.1grass.en
db.columns(1grass) Grass User's Manual db.columns(1grass)

db.columns - List all columns for a given table.

database, attribute table

db.columns
db.columns --help
db.columns table=name [driver=name] [database=name] [--help] [--verbose] [--quiet] [--ui]


Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of attribute table

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

Name of database
Default: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db

db.columns lists all columns for a give table. Connection to databases are supported through dbf, shp, odbc and pg drivers.

If parameters for database connection are already set with db.connect, they are taken as default values and do not need to be spcified each time.

db.columns table=zipcodes_wake driver=pg database=grassdb

If the database parameters are already set, the columns can be listed directly

db.columns table=zipcodes_wake

db.columns table=zipcodes_wake driver=dbf database=/grassdata/nc_spm_08/PERMANENT/dbf/

Note that the SQLite backend is the default setting.

db.columns driver=sqlite table=archsites database=’$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db’

db.connect, db.describe, db.drivers, db.droptable, db.execute, db.login, db.tables, GRASS SQL interface

GRASS SQL interface

Radim Blazek, ITC-Irst, Trento, Italy

Last changed: $Date: 2014-11-28 10:57:47 +0100 (Fri, 28 Nov 2014) $

Available at: db.columns source code (history)

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

© 2003-2019 GRASS Development Team, GRASS GIS 7.6.0 Reference Manual

GRASS 7.6.0