db.describe1grass
Describes a table in detail.
Usage
db.describe
db.describe --help
db.describe [-c]
table=name
[driver=name]
[database=name]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
database, attribute table
Overview
db.describe displays table information. If parameter -c is used only column names instead of full column descriptions is given.
Note
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.
Examples
List column descriptions of table in SQLite database (note that this is the default setting)
db.describe driver=sqlite table=hospitals \database=’$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db’# or simplydb.describe myarchsites
DBF example
db.describe -c table=hospitals database=’$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/’ \driver=dbfncols: 16nrows: 160Column 1: cat:INTEGER:11Column 2: OBJECTID:INTEGER:11Column 3: AREA:DOUBLE PRECISION:20[...]
db.describe table=hospitals database=’$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/’ \driver=dbftable:hospitalsdescription:insert:yesdelete:yesncols:16nrows:160column:catdescription:type:INTEGERlen:11scale:0precision:10default:nullok:yesselect:yesupdate:yescolumn:OBJECTIDdescription:type:INTEGER[...]
Source code
Available at: db.describe source code (history)
Accessed: Monday Feb 24 17:50:22 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
10 releases since Debian 4.0 (Etch); the text changed 9 times.