db.columns(1)
π db.columns β GRASS GIS User's Manual π
okay bestie, welcome to db.columns, a GRASS GIS User's Manual page, and honestly? it's giving "short queen, huge utility." π
β¨ NAME β¨
db.columns β list all columns for a given table. that's it. that's the whole job. and she ate. π
π·οΈ KEYWORDS π·οΈ
database, attribute table
iykyk. π¦
π SYNOPSIS π
db.columns
db.columns --help
db.columns table=name [driver=name] [database=name] [--help]
[--verbose] [--quiet] [--ui]
π© Flags:
--helpβ print the usage summary, like a lil cheat sheet π«Ά--verboseβ verbose module output, she's chatty now π¬--quietβ quiet module output, shhh, no yapping π€«--uiβ force launching the GUI dialog, main character energy β¨
π§© Parameters:
table=name[required] β name of the attribute table. yeah this one is not optional bestie, you gotta give her the table πdriver=nameβ name of the database driver- Options:
dbf,mesql,mysql,odbc,ogr,pg,sqlite - Default:
sqlite
- Options:
database=nameβ name of the database- Default:
$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
- Default:
πΈ DESCRIPTION πΈ
db.columns lists all columns for a given table. that's the vibe check β she looks at your table and reads you the whole cast list of columns. π
connections to databases are supported through the dbf, shp, odbc and pg drivers. multiple ways in, one icon behavior. periodt. π
π NOTE π
if the parameters for a database connection are already set with db.connect, they get taken as the default values, so you do NOT need to specify them every single time. she remembers. she's thoughtful like that. π«Ά
π§ͺ EXAMPLES π§ͺ
π List columns of a PostgreSQL attribute table
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
look at her, effortless, no extra args needed π
ποΈ List columns from Shape file with DBF attribute table
db.columns table=zipcodes_wake driver=dbf database=/grassdata/nc_spm_08/PERMANENT/dbf/
πͺΆ List columns of table in SQLite database
note that the SQLite backend is the default setting, bestie. she's the baseline. the blueprint. the moment. β
db.columns driver=sqlite table=archsites database=β$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.dbβ
π SEE ALSO π
db.connect, db.describe, db.drivers, db.droptable, db.execute, db.login, db.tables, GRASS SQL interface
GRASS SQL interface
(yes, GRASS SQL interface said it twice, she's just that important π)
βοΈ AUTHOR βοΈ
Radim Blazek, ITC-Irst, Trento, Italy
πΎ SOURCE CODE πΎ
Available at: db.columns source code (history)
Accessed: Saturday Jan 17 05:40:33 2026
Main index | Database index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's a wrap on the GRASS GIS 8.4.2 reference manual moment β this page was accessed Saturday Jan 17 05:40:33 2026, and yes the footer says GRASS 8.4.2 and db.columns(1) because she's β¨iconicβ¨ and she knows it. go list some columns, bestie, you got this πππ¦
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms