Exportar dados
Como faço um código para exportar dados de uma table para outra?
Alguém pode me ajudar?
Alguém pode me ajudar?
Douglas
Curtidas 0
Respostas
Lucas Silva
29/03/2004
não tenho muita certeza, mais tenta esse código ai.
insert into TABELA1 values(select * from TABELA2)
GOSTEI 0
Marcio.theis
29/03/2004
use o DataPump do delphi
GOSTEI 0
Henry
29/03/2004
Faço assim:
Table1.first;
While not table1.eof do
begin
Table2.insert;
Table2Campo.value:= Table1campo.value;
Table2campo2.value:= Table1campo.value;
Table2.post;
Table1.next;
end;
Para usar Table1Campo, vc tem que adicionar todos os campos da tabela, e se tiver um campo com o nome Artigo, vc bota table1Artigo.value, qualquer coisa é so fala....
Um abraço Henry,
Table1.first;
While not table1.eof do
begin
Table2.insert;
Table2Campo.value:= Table1campo.value;
Table2campo2.value:= Table1campo.value;
Table2.post;
Table1.next;
end;
Para usar Table1Campo, vc tem que adicionar todos os campos da tabela, e se tiver um campo com o nome Artigo, vc bota table1Artigo.value, qualquer coisa é so fala....
Um abraço Henry,
GOSTEI 0