ОПИСАНИЕ

v.db.addtable creates and adds a new attribute table to a given vector map. It links the table to the specified layer of the vector map. If the vector map is not yet linked to any table, new a database link is established based on the MAPSET database settings (see db.connect).

ПРИМЕЧАНИЯ

v.db.addtable is a front-end to db.execute to allow easier usage. The supported types of columns depend on the database backend. However, all backends should support VARCHAR, INT, DOUBLE and DATE. The default dbf backend supports only these types. The existing database connection(s) can be verified with v.db.connect.

ПРИМЕР

Adding a new attribute table with a single column to default layer 1:
v.db.addtable sentiero_brenta_points columns="slope double"
v.db.connect -p sentiero_brenta_points
v.info -c sentiero_brenta_points

Adding a new attribute table with two columns to layer 2:

v.db.addtable sentiero_brenta_points columns="slope double,myname varchar(15)" layer=2
v.db.connect -p sentiero_brenta_points
v.info -c sentiero_brenta_points

СМ. ТАКЖЕ

db.connect, db.execute, v.db.addcol, v.db.connect, v.db.dropcol, v.db.droptable, v.db.select, v.db.update
GRASS SQL interface

АВТОР

Markus Neteler

Last changed: $Date: 2007-05-07 10:59:55 -0500 (Пн, 07 май 2007) $

Автор перевода