1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <h2>DESCRIPTION</h2>
- <em>v.db.addtable</em> 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 <em>db.connect</em>).
- <h2>NOTES</h2>
- <em>v.db.addtable</em> is a front-end to <em>db.execute</em> to allow easier
- usage.
- The supported types of columns depend on the database backend. However, all
- backends should support VARCHAR, INT, DOUBLE PRECISION and DATE. The default
- dbf backend supports only these types.
- The existing database connection(s) can be verified with <em>v.db.connect</em>.
- <h2>EXAMPLE</h2>
- Adding a new attribute table with a single column to default layer 1:<br>
- <div class="code"><pre>
- v.db.addtable sentiero_brenta_points columns="slope double precision"
- v.db.connect -p sentiero_brenta_points
- v.info -c sentiero_brenta_points
- </pre></div>
- <p>
- Adding a new attribute table with two columns to layer 2:<br>
- <div class="code"><pre>
- v.db.addtable sentiero_brenta_points columns="slope double precision,myname varchar(15)" layer=2
- v.db.connect -p sentiero_brenta_points
- v.info -c sentiero_brenta_points
- </pre></div>
- <h2>SEE ALSO</h2>
- <em><a HREF="db.connect.html">db.connect</a></em>,
- <em><a HREF="db.droptable.html">db.droptable</a></em>,
- <em><a HREF="db.execute.html">db.execute</a></em>,
- <em><a HREF="v.db.addcol.html">v.db.addcol</a></em>,
- <em><a HREF="v.db.connect.html">v.db.connect</a></em>,
- <em><a HREF="v.db.dropcol.html">v.db.dropcol</a></em>,
- <em><a HREF="v.db.droptable.html">v.db.droptable</a></em>,
- <em><a HREF="v.db.select.html">v.db.select</a></em>,
- <em><a HREF="v.db.update.html">v.db.update</a></em><br>
- <em><a href="sql.html">GRASS SQL interface</a></em>
- <h2>AUTHOR</h2>
- Markus Neteler
- <p>
- <i>Last changed: $Date$</i>
|