Forum: Datenbanken
Delphi
by Nico80,
19. Jul 2007
CREATE PROCEDURE CopyIDs
AS
DECLARE VARIABLE IdTabelleA INTEGER;
DECLARE VARIABLE IdTabelleBINTEGER;
BEGIN
FOR SELECT id_tabelleA, id_tabelleB
FROM tabelleA
INTO :IdTabelleA , :IdTabelleB
DO
BEGIN
Forum: Datenbanken
Delphi
by Nico80,
19. Jul 2007
Geht nicht.
Ich machs jetzt mit einer Stored Procedure.
Ist zwar blöd, da ich die Procedure nur einmal brauche. Aber was soll's. Dann lösche ich die Procedure nach der Aktualisierung wieder.
Trotzdem Danke!!!
Forum: Datenbanken
Delphi
by Nico80,
19. Jul 2007
Folgende Fehlermeldung:
The next statement causes the following error:
multiple rows in singleton select
Forum: Datenbanken
Delphi
by Nico80,
19. Jul 2007
Nee das geht so nicht,..
update tabelleB B, tabelleA A set B.id_tabelleA=A.id_tabelleA where A.id_tabelleB = B.id_tabelleB;
So in etwa stelle ich mir das vor. Leider kann man keine 2 Tabellen im Update-Statement eingeben