in reply to Extracting only required length in a column in perl DBI
If you only need the first three characters of each column, why not simply ask for that when doing your query? For example:
SELECT SUBSTR(COL1, 0, 3) FROM TABLENAME;
Consider using place holders where possible, See DBI and Bobby Tables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting only required length in a column in perl DBI
by Thomas Kennll (Acolyte) on Jan 15, 2013 at 12:48 UTC | |
by marto (Cardinal) on Jan 15, 2013 at 12:53 UTC | |
by Thomas Kennll (Acolyte) on Jan 15, 2013 at 13:08 UTC | |
by marto (Cardinal) on Jan 15, 2013 at 14:02 UTC | |
|
Re^2: Extracting only required length in a column in perl DBI
by Anonymous Monk on Jan 17, 2013 at 07:32 UTC | |
by marto (Cardinal) on Jan 17, 2013 at 10:31 UTC |