ich einen seltsamen Fall habe: Es funktioniert:Tabelle kann nicht umbenennen
rename table `test` to `test3`
aber das funktioniert nicht:
rename table `test` to `test1`
Fehler bei Umbenennen von (errno: 150 - über Fremdschlüssel ist falsch gebildet)
UPDATE:
I gesetzt:
SET FOREIGN_KEY_CHECKS=0;
ich nicht Fremdschlüssel haben
CREATE TABLE `test` (`agglomeration_id` int(11) NOT NULL, `carpark_id` int(11) NOT NULL, `numer_urzadzenia` char(3) NOT NULL,
`payments_zone` char(1) DEFAULT NULL, `status` tinyint(1) DEFAULT NULL, `time_stamp` bigint(20) DEFAULT NULL,
`resource_uri` char(200) DEFAULT NULL, `test` int(1) NOT NULL, PRIMARY KEY (`test`))
ENGINE=InnoDB DEFAULT CHARSET=utf8
Hat die Tabelle hat einen Fremdschlüssel namens 'test1'? –
Fügen Sie die Fremdschlüssel zu dieser Tabelle bitte hinzu – rbr94