Hello!
I ask for help, I can not figure out the code. There are two tables (Table1 and Table2), so from the second table on the first two lines should be copied (Imya and Fam), and for some reason I copy everything that is in the second table. I program on Delphi an Access DB. Help me please. Here is the code:
ADOQuery1.Active:=false; ADOQuery1.SQL.Clear; ADOQuery1.SQL.add('INSERT INTO Таблица1 (Imya, fam, Adres, Nom) '); ADOQuery1.SQL.add('SELECT Imya, fam, Adres, Nom'); ADOQuery1.SQL.Add('FROM Таблица2'); ADOQuery1.ExecSQL; ADOQuery1.SQL.Text:='SELECT * FROM Таблица2';
SELECT *
sample, and insert all the fields (Imya, fam, Adres, Nom
) - Gorets