3
<em>db.describe</em> displays table information. If parameter <b>-c</b>
4
is used only column names instead of full column descriptions is given.
8
If parameters for database connection are already set with
9
<a href="db.connect.html">db.connect</a>, they are taken as default values and
10
do not need to be spcified each time.
14
<em>List column descriptions of table in SQLite database (note that this
15
is the default setting)</em><br>
17
<div class="code"><pre>
18
db.describe driver=sqlite table=hospitals \
19
database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db'
22
db.describe myarchsites
26
<div class="code"><pre>
27
db.describe -c table=hospitals database='$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/' \
31
Column 1: cat:INTEGER:11
32
Column 2: OBJECTID:INTEGER:11
33
Column 3: AREA:DOUBLE PRECISION:20
37
<div class="code"><pre>
38
db.describe table=hospitals database='$GISDBASE/$LOCATION_NAME/PERMANENT/dbf/' \
67
<a href="db.columns.html">db.columns</a>,
68
<a href="db.droptable.html">db.droptable</a>,
69
<a href="db.execute.html">db.execute</a>,
70
<a href="db.login.html">db.login</a>,
71
<a href="db.tables.html">db.tables</a>,
72
<a href="sql.html">GRASS SQL interface</a>
77
Radim Blazek, ITC-Irst, Trento, Italy
79
<p><i>Last changed: $Date: 2014-11-28 10:58:18 +0100 (Fri, 28 Nov 2014) $</i>