1v.db.dropcolumn(1)          GRASS GIS User's Manual         v.db.dropcolumn(1)
2
3
4

NAME

6       v.db.dropcolumn  - Drops a column from the attribute table connected to
7       a given vector map.
8

KEYWORDS

10       vector, attribute table, database
11

SYNOPSIS

13       v.db.dropcolumn
14       v.db.dropcolumn --help
15       v.db.dropcolumn   map=name    [layer=string]    columns=name[,name,...]
16       [--help]  [--verbose]  [--quiet]  [--ui]
17
18   Flags:
19       --help
20           Print usage summary
21
22       --verbose
23           Verbose module output
24
25       --quiet
26           Quiet module output
27
28       --ui
29           Force launching GUI dialog
30
31   Parameters:
32       map=name [required]
33           Name of vector map
34           Or data source for direct OGR access
35
36       layer=string
37           Layer number or name
38           Vector  features can have category values in different layers. This
39           number determines which layer to use. When  used  with  direct  OGR
40           access this is the layer name.
41           Default: 1
42
43       columns=name[,name,...] [required]
44           Name of attribute column(s) to drop
45

DESCRIPTION

47       v.db.dropcolumn  drops a column from the attribute table connected to a
48       given vector map. It automatically checks the connection for the speci‐
49       fied  layer.  v.db.dropcolumn omits to delete the ’cat’ column which is
50       relevant to keep the connection between vector map and table.
51

NOTES

53       v.db.dropcolumn is a front-end to db.execute to allow easier usage.
54
55       The existing database connection(s) can be verified with v.db.connect.
56

EXAMPLES

58       Dropping a column:
59       g.copy vect=roadsmajor,myroads
60       v.info -c myroads
61       v.db.dropcolumn myroads column=SHAPE_LEN
62       v.info -c myroads
63

SEE ALSO

65        db.connect, db.dropcolumn, db.execute,  v.db.addcolumn,  v.db.connect,
66       v.db.droptable, v.db.select, v.db.update
67       GRASS SQL interface
68

AUTHOR

70       Markus Neteler
71

SOURCE CODE

73       Available at: v.db.dropcolumn source code (history)
74
75       Main  index  | Vector index | Topics index | Keywords index | Graphical
76       index | Full index
77
78       © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
79
80
81
82GRASS 7.8.5                                                 v.db.dropcolumn(1)
Impressum