I'm using ZQuery with Select-Query and I am using this 2 tables:
Artikel:
ID : autoinc
Name: string,
...
AtikelBild:
ArtikelID: integer
Bild: blob,
...
the query looks like this
Code: Select all
Select * from Artikel, AtikelBild where artikel.ID=artikelbild.artikelID
Code: Select all
Insert into Artikel (Name,...) Value (:Name,..);
Insert into AtikelBild (ArtikelID,Bild,...) Value (:ID, :Bild..);
I found here in the forum the tip to use RETURNING. But I am using MSSQL and it looks as it this function is not integrated for this DB. Or did i made a mistake?
Oh by the way, I am using a DBCTRLGrid to insert information.
Thanks for every answer
Chaosworld
PS: sorry i wrote this text first in german. I was looking here and also a lot with google and was reading before in german so that i forgot that english is used in this forum!