|
KolaG
Starting Member
5 Posts |
Posted - 2008-11-08 : 14:07:20
|
Hi can anyone help me with a sample code that i can use to insert a txt file into an SQL database table in DB2.Below is the file to be inserted:1,00:22,63,132,73,1421,00:50,116,155,126,1651,01:35,206,182,216,1921,02:01,233,197,243,2071,05:14,218,233,228,2431,07:44,244,261,254,2711,13:26,272,256,282,2661,18:14,285,228,298,2391,18:25,356,238,366,2481,18:57,496,346,506,3562,01:07,221,116,231,1262,01:18,232,74,242,842,01:50,196,75,206,852,02:01,129,123,139,1332,12:50,113,157,123,1672,13:20,107,183,117,1932,15:58,192,214,202,2242,16:45,207,185,217,1952,18:14,202,145,212,1552,20:22,150,130,160,1403,02:48,303,62,313,723,04:25,361,94,371,1043,06:18,295,219,305,2293,09:46,356,239,366,2493,15:26,392,164,402,1743,17:20,429,182,439,1923,22:48,446,242,456,2523,22:14,507,230,517,2403,23:05,464,297,474,3073,23:48,423,355,433,3654,10:02,40,294,50,3044,12:18,59,320,69,3304,15:22,169,280,179,2904,15:58,194,216,204,2264,18:03,227,227,237,2374,18:14,285,229,295,2394,20:33,358,99,368,1094,20:45,416,127,426,1374,21:06,578,216,588,2264,22:04,539,359,549,3695,03:13,501,42,511,525,03:15,426,56,436,665,04:25,361,93,371,1035,06:51,539,189,549,1995,07:44,506,233,516,2435,07:48,401,263,411,2735,09:10,267,204,277,2145,12:14,310,125,320,1355,17:28,233,74,243,845,18:44,193,74,203,84I have this command which can only insert one row at a time:INSERT INTO TABLE(ID, T_IME, GEOMETRY) VALUES (1, '12:22',DB2GSE.ST_Point('point(63 132,73 142)',1)) How can i modify this code to insert it all the above data at once.Thanks |
|