db.columns
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.
List columns from PostgreSQL attribute table
db.columns table=markveggy driver=pg database=grass60test
If database parameters are already set
db.columns table=markveggy
List columns from Shape file with DBF attribute table
db.columns table=network driver=dbf database=/daten/grassdata/fire/PERMANENT/dbf/
db.connect, db.describe, db.drivers, db.droptable, db.execute, db.login, db.tables, GRASS SQL interface
Radim Blazek, ITC-Irst, Trento, Italy
Last changed: $Date: 2005/12/10 17:49:50 $
Full index