![]() |
![]()
| ![]() |
![]()
NAMEdb.copy - Copy a table.
KEYWORDSdatabase, attribute table, SQL SYNOPSISdb.copy
Flags:
Parameters:
DESCRIPTIONdb.copy allows the user to copy a table between two databases. Databases can be connected through different drivers (see examples below). NOTESAttribute tables can be copied using db.copy and, when to be associated to a vector map, assigned to the map with v.db.connect. Current connection settings are saved in the file $LOCATION/vector_map/dbln. EXAMPLESFrom DBF to PostgreSQLStoring table ’geonames.dbf’ (in current
directory) into PostgreSQL through ODBC:
db.copy from_driver=dbf from_database=’$GISDBASE/$LOCATION_NAME/PERMANENT/dbf’ \ From PostgreSQL to DBFdb.copy from_driver=pg from_database="host=pgserver.example.org,dbname=testdb" \ From PostgreSQL to PostgreSQL with conditiondb.copy from_driver=pg from_database="host=localhost,dbname=testdb" \ From DBF to SQLitedb.copy from_driver=dbf from_database=’$GISDBASE/$LOCATION_NAME/PERMANENT/dbf’ \ From SQLite to DBFdb.copy from_driver=sqlite from_database=’$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db’ \ SEE ALSOdb.connect, db.drivers, db.login, v.db.connect, v.clean GRASS SQL interface AUTHORRadim Blazek, ITC-irst, Trento, Italy SOURCE CODEAvailable at: db.copy source code (history) Latest change: Thursday Jan 26 14:10:26 2023 in commit: cdd84c130cea04b204479e2efdc75c742efc4843 Main index | Database index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
|