Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: I need a list of values for the DBI statement handle attribute TYPE

by pfaut (Priest)
on Feb 25, 2004 at 02:07 UTC ( #331576=note: print w/replies, xml ) Need Help??


in reply to I need a list of values for the DBI statement handle attribute TYPE

Are you looking for this little tidbit buried in the DBI POD?

Constants representing the values of the SQL standard types can + be imported individually by name, or all together by importing the + special ":sql_types" tag. The names and values of all the defined SQL standard types can +be pro- duced like this: foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { printf "%s=%d\n", $_, &{"DBI::$_"}; }
90% of every Perl application is already written.
dragonchild
  • Comment on Re: I need a list of values for the DBI statement handle attribute TYPE
  • Download Code

Replies are listed 'Best First'.
Re^2: I need a list of values for the DBI statement handle attribute TYPE
by Anonymous Monk on Apr 01, 2007 at 17:34 UTC
    > foreach (@{ $DBI::EXPORT_TAGS{sql_types} }) { > printf "%s=%d\n", $_, &{"DBI::$_"}; > } It fails with "use strict", and I can't see how to define that variable.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-10-26 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (252 votes). Check out past polls.

    Notices?