1db.dropcol(1) Grass User's Manual db.dropcol(1)
2
3
4
6 db.dropcol - Drops a column from selected attribute table
7
9 database, attribute table
10
12 db.dropcol
13 db.dropcol help
14 db.dropcol [-f] table=name column=string [--verbose] [--quiet]
15
16 Flags:
17 -f
18 Force removal (required for actual deletion of files)
19
20 --verbose
21 Verbose module output
22
23 --quiet
24 Quiet module output
25
26 Parameters:
27 table=name
28 Table from which to drop attribute column
29
30 column=string
31 Name of the column
32
34 db.dropcol drops a column from an attribute table. If the -f force
35 flag is not given then nothing is removed, instead a preview of the
36 action to be taken is printed.
37
39 db.dropcol is a front-end to db.execute to allow easier usage with a
40 special workaround for the SQLite driver to support column drop.
41
43 Dropping a column (Spearfish):
44
45
46 # work on own copy
47 g.copy vect=roads,myroads
48 db.describe -c myroads
49 # only shows what would happen:
50 db.dropcol myroads column=label
51 # actually drops the column
52 db.dropcol -f myroads column=label
53 db.describe -c myroads
54
55
57 db.execute, v.db.dropcol
58
60 Markus Neteler
61
62 Last changed: $Date: 2007-07-14 12:59:51 +0200 (Sat, 14 Jul 2007) $
63
64 Full index
65
66 © 2003-2008 GRASS Development Team
67
68
69
70GRASS 6.3.0 db.dropcol(1)