Hello, dear Monks.

I am planning to use PERL DBI to do data transfer operations between Oracle (10g) and mySQL (5.1.41) table servers. I have the latest and greatest CPAN bits.

I hope to control some aspects of these operations by storing tags in table and column comments. For example I might put the string --ANONYMIZE-- into a table comment if my data transfer operation needs to randomize data from that particular table to sanitize it.

DBI offers some nicely designed database independent metadata access methods, for example the table_info method. The trouble is, this table_info method returns empty REMARK data for mySQL, whereas it correctly returns the table comment as REMARK data for Oracle.

I know how to use mySQL's information_schema to get exactly what I need. But I was hoping to do this in a, well, DBI (Data Base Independent) way. Am I out of luck? Or is there something I'm missing about the use of table_info? Thanks for any advice, and thanks for PERL.


In reply to PERL DBI access to mysql table_info metadata: table comments missing? by Ollie Jones

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.