How to make an insert in mysql with data coming from a SimpleDataSet

1

I have a SimpleDataset with data from a Firebird location.

I have to make a Insert in Mysql .

How do I do this?

Other SqlConnect and another SimpleDataSet ?

How to do insert with data from this SimpleDataSet ( firebird ).

    
asked by anonymous 14.07.2016 / 01:56

1 answer

2

I do not know how this component works, but in general you make a loop in DataSet doing insert of each item of it!

It works as if it were an importer!

Ex:

NomeDataSet.First
while not NomeDataSet.Eof do
begin
  //aqui seu Código SQL para efetuar o Insert
  NomeDataSet.Next
end;

And yes, you will need the two connections!

    
14.07.2016 / 13:07