Wie kann ich in der DB die Spalten folge einer Tabelle ändern. (Nicht erst im SELECT).
MfG
mnhg
MfG
mnhg
ALTER TABLE `tabelle` ADD `temporary_field` INT(11) DEFAULT "0" NOT NULL AFTER `spalte1`; UPDATE `tabelle` SET `temporary_field` = `spalte5`; ALTER TABLE `tabelle` DROP `spalte5`; ALTER TABLE `tabelle` CHANGE `temporary_field` `spalte5` INT(11) DEFAULT "0" NOT NULL;
Kommentar