Kod: Tümünü seç
Stok1.first;
while not stok1.eof do
begin
arama := stok.locate('ID',stok1id.asinteger,[]);
if arama = true then
stok1.next
else
begin
stok.insert
.....
....
stok.post;
stok1.next;
end;
end;
Kod: Tümünü seç
Stok1.first;
while not stok1.eof do
begin
arama := stok.locate('ID',stok1id.asinteger,[]);
if arama = true then
stok1.next
else
begin
stok.insert
.....
....
stok.post;
stok1.next;
end;
end;
Kod: Tümünü seç
select ID from STOK;
Kod: Tümünü seç
'select * from stok where stok.id in ' + idler
sirdragonblack yazdı:Merhabalar. Hostta bulunan sql veritabanına firebird veritabanından stok,cari gibi kayıtları gönderirken şu yöntemi uyguluyorum.Fakat bu yöntem hosta satır satır attığı ve update işleminde de satır satır kontrol ettiğii için exeyi ve bilgisayarı kasıyor. Toplu veri gönderimi yapabilir miyim ya da daha hızlı ve kasmayan nasıl bir yöntem tavsiye edebilirsiniz. Allah yâr ve yardımcınız olsun.Kod: Tümünü seç
Stok1.first; while not stok1.eof do begin arama := stok.locate('ID',stok1id.asinteger,[]); if arama = true then stok1.next else begin stok.insert ..... .... stok.post; stok1.next; end; end;