db.tables - Lists all tables for a given database.
Contents
Description
db.tables lists all tables for a given database.
Examples
Listalltablesifdatabaseconnectionisalreadyset
db.tables -p
ListallDBFtables
db.tables driver=dbf database=/grassdata/nc_spm_08/user1/PERMANENT/dbf
ListalltablesinSQLitedatabase(notethatthisisthedefaultsetting)
db.tables -p driver=sqlite database=’$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db’
Keywords
database, attribute table
Name
db.tables - Lists all tables for a given database.
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.
See Also
db.columns,db.droptable,db.login,db.execute,GRASSSQLinterface
Source Code
Available at: db.tables source code (history)
Accessed: Friday Apr 04 01:18:43 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
GRASS 8.4.1 db.tables(1grass)
Synopsis
db.tablesdb.tables--helpdb.tables [-ps] [driver=name] [database=name] [--help] [--verbose] [--quiet] [--ui]
Flags:-p
Print tables and exit
-s
System tables instead of user tables
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog
Parameters:driver=name
Name of database driver
Options: dbf,mysql,odbc,ogr,pg,sqlite
Default: sqlitedatabase=name
Name of database
Default: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db