Ich mußte eben mit Schrecken feststellen, daß ich in meiner DB eine Spalte mit AdioBitRate statt AudioBitRate eingerichtet habe.

(Wie) kann ich das einfach beheben ?
mDv... scholly
Code: Alles auswählen
ALTER TABLE AdioBitRate RENAME AudioBitRate
Code: Alles auswählen
ALTER TABLE Tabelle CHANGE AdioBitRate AudioBitRate
Code: Alles auswählen
create temp table ___ (Id INTEGER,Spalte1 INTEGER,Spalte2 TIMESTAMP,AudioBitRate VARCHAR);
insert into ___ select ID,Spalte1,Spalte2,AdioBitrate from originalTabelle;
Alter Table OriginalTabelle RENAME TO SICHERUNG;
;oder das folgende
--drop table OriginalTabelle;
create table OriginalTabelle (Id INTEGER,Spalte1 INTEGER,Spalte2 TIMESTAMP,AudioBitRate VARCHAR)
insert into OriginalTabelleselect * from ___;
drop table temp.___;
CREATE INDEX "IDX" ON 'OriginalTabelle'("Id" ASC);
Code: Alles auswählen
ALTER TABLE Tabelle CHANGE AdioBitRate AudioBitRate
Code: Alles auswählen
ALTER TABLE Tabelle CHANGE AdioBitRate AudioBitRate INT
Ich hatte nun die Hoffnung, daß es doch einen "Trick" geben würde.SQLite-Doku hat geschrieben:Only the RENAME TABLE and ADD COLUMN variants of the ALTER TABLE command are supported. Other kinds of ALTER TABLE operations such as DROP COLUMN, ALTER COLUMN, ADD CONSTRAINT, and so forth are omitted.