Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   firebird alter table (https://www.delphipraxis.net/125453-firebird-alter-table.html)

khh 6. Dez 2008 10:43

Datenbank: firebird • Version: 2.1 • Zugriff über: ZEOS

firebird alter table
 
hallo zusammen,
wie bekomme ich bei firebird ein feld in eine bestehende tabellenstruktur eingefügt?

ALTER TABLE tabelle
ADD feldneu SMALLINT after feld2 ; gefällt ihm nicht

Danke gruss KH

mkinzler 6. Dez 2008 10:54

Re: firebird alter table
 
Man kann in FireBird nur die Position des Feldes festlegen:
SQL-Code:
ALTER TABLE tabelle
ADD feldneu SMALLINT;
alter table tabelle1 alter feldneu position 3;

khh 6. Dez 2008 11:47

Re: firebird alter table
 
Zitat:

Zitat von mkinzler
Man kann in FireBird nur die Position des Feldes festlegen:
SQL-Code:
ALTER TABLE tabelle
ADD feldneu SMALLINT;
alter table tabelle1 alter feldneu position 3;

naja das geht ja auch ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz