I want to Load a text file in a three column Table with three fields, all comma separated like:-
923335100025,Amer,Baig
923335100017,Asif,Qazi
923335100089,Maz
923335120084,Tahir,Ch
923335120085,Waseem
My format file is
7.0
3
1 SQLCHAR 0 20 "," 1 msisdn
2 SQLCHAR 0 20 "," 2 name
3 SQLCHAR 0 20 "\r\n" 3 lname
The problem is that the text file may contain all fields or not.
How to load such file. I have struggled a lot please help
Regards,
Amer
923335100025,Amer,Baig
923335100017,Asif,Qazi
923335100089,Maz
923335120084,Tahir,Ch
923335120085,Waseem
My format file is
7.0
3
1 SQLCHAR 0 20 "," 1 msisdn
2 SQLCHAR 0 20 "," 2 name
3 SQLCHAR 0 20 "\r\n" 3 lname
The problem is that the text file may contain all fields or not.
How to load such file. I have struggled a lot please help
Regards,
Amer