Hvad går der galt i min update statement her?
Hejsa.Jeg skal have kopieret noget indhold fra en tabel til en anden tabel og har lige fundet denne syntax på http://www.informit.com:
---------------------------------------------
You not only can identify records to update based on the contents of another table, you can copy column values from one table to another. The following statement copies t1.a to t2.a for records that have a matching id column value:
UPDATE t1, t2 SET t2.a = t1.a WHERE t2.id = t1.id;
---------------------------------------------
Jeg forsøger derfor at gøre dette men det virker ikke, hvad går der galt her:
---------------------------------------------
UPDATE hold, holdspec SET holdspec.specbeskrivelse = hold.beskrivelse
WHERE holdspec.holdid = hold.ID;
---------------------------------------------
Jeg gør nøjagtigt som de beskriver, sååå.... ??!?
Nogen der har et forslag?
På forhånd tak :)
