add column
Fügt einer Tabelle eine weitere Spalte hinzu.
ALTER TABLE <TableName> ADD COLUMN <ColumnName> <ColumnDefinition>
:ColumnDefinition
<ColumnType>(<ColumnPrecisision>,<ColumnScale>)
[AUTOINC] [NULL] [NOT NULL]
:ColumnType
BLOB, CHAR, CURRENCY, DATE, DATETIME, DOUBLE, LOGICAL, MEMO, INTEGER, NUMERIC, FLOAT
Parameter TableName
Verweist auf einen Alias in der aktuellen Datensitzung oder auf eine Datei
im Dateisystem. Wenn die Tabelle noch nicht geöffnet ist wird sie automatisch
im exklusiven Modus geöffnet um die Änderung durchzuführen.
1
2
3
4
create cursor someCursor (someField integer)
display structure
alter table someCursor add column someString char(20)
display structure
Structure for table: memory:///57c72d221e0.dbf
Number of data records: 0
Date of last update: 0025-08-16
DBF-Codepage: 1252 (windows-1252)
DBF-Version: 50 (0x32)
# NAME TYPE PREC SCALE NULL NEXT STEP
1 someField Integer 4 0 _ 0 0
Structure for table: memory:///57c72d22be0.dbf
Number of data records: 0
Date of last update: 0025-08-16
DBF-Codepage: 1252 (windows-1252)
DBF-Version: 50 (0x32)
# NAME TYPE PREC SCALE NULL NEXT STEP
1 someField Integer 4 0 _ 0 0
2 someString Char 20 0 _ 0 0