Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://331576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-24 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found