Hello,
I have a several SQL tables and I am trying to write a routine to export the records to a text file. I'm a little confused on how to set this up. For example, if I have:
Table One with fields (id,Field1,Field2)
Table Two with fields (id,FieldA,FieldB)
Table Three with fields (id,FieldZ,FieldZZ)
The id's for tables Two and Three are foreign keys based on the id of table One.
How can I read through all the records easily and write a line of text for example that is:
id,Field1,Field2,FieldA,FieldB,FieldZ,FieldZZ
repeat...
I have a several SQL tables and I am trying to write a routine to export the records to a text file. I'm a little confused on how to set this up. For example, if I have:
Table One with fields (id,Field1,Field2)
Table Two with fields (id,FieldA,FieldB)
Table Three with fields (id,FieldZ,FieldZZ)
The id's for tables Two and Three are foreign keys based on the id of table One.
How can I read through all the records easily and write a line of text for example that is:
id,Field1,Field2,FieldA,FieldB,FieldZ,FieldZZ
repeat...