It's tempting when first using it, to just read what you 'think' is essential to you

It sounds like you're saying that's a bad thing, but that's exactly how I got the answer.

The DBI docs are pretty long, though..

When wanting a property of a database handle, look at the index for database handles.

* Database Handle Methods o clone o data_sources o do o last_insert_id o selectrow_array o selectrow_arrayref o selectrow_hashref o selectall_arrayref o selectall_hashref o selectcol_arrayref o prepare o prepare_cached o commit o rollback o begin_work o disconnect o ping o get_info o table_info o column_info o primary_key_info o primary_key o foreign_key_info o statistics_info o tables o type_info_all o type_info o quote o quote_identifier o take_imp_data * Database Handle Attributes o AutoCommit (boolean) o Driver (handle) o Name (string) o Statement (string, read-only) o RowCacheSize (integer) o Username (string)

I got three possible answers from that. Three quick clicks indicates all three fulfill the OP's requirements.

That's not long. That's among the shortest amount of reading I've had to do to find a function. And I found three!


In reply to Re^3: Getting database type from db handle by ikegami
in thread Getting database type from db handle by songahji

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.