On 2010-05-30 17:33:39 +1200, newbie01 perl wrote:
> Am trying out DBI for Oracle and just want to know if for example, I need to
> include column formatting stuff etc., is it best to just put them into a
> .sql file and then execute the .sql file instead of placing them in the Perl
> DBI script?

By "column formatting stuff" you mean commands like
column foo format a20
?

These are sqlplus commands, not sql commands, i.e., they are features of
the query tool, not the database. Consequently, they are not available
in perl. To format data in Perl, use Perl features, like printf,
formats, various templating toolkits, etc.

        hp

-- 
   _  | Peter J. Holzer    | Auf jedem Computer sollte der Satz Ludwigs II
|_|_) | Sysadmin WSR       | eingeprägt stehen: "Ein ewig Rätsel will ich
| |   | h...@wsr.ac.at      | bleiben, mir und andern."
__/   | http://www.hjp.at/ |    -- Wolfram Heinrich in desd

Attachment: signature.asc
Description: Digital signature

Reply via email to