in reply to Using Sybase::BCP ~ getting NULL values
I've never used Sybase::BCP, but I've used bcp from the command line before, and I'd suspect that the configuration needs a bit more information. Somehow, it has to map the columns in the input file to the columns in the table. So try using the REORDER parameter to map them, something like:
...roboticus$bcp->config( ... REORDER => { 1=>'name', 2=>'grade', 3=>'address', 4=>'prime_phone +', 4=>'prime_phone', 5=>'altid', 6=>'ent' }, ...);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Sybase::BCP ~ getting NULL values
by bubnoff (Novice) on Dec 18, 2009 at 18:33 UTC |