This really has no place here but:
You can do an insert using <a href=http://search.cpan.org/search?dist=DBI">DBI and a
DBD driver form (
CPAN) by creating your connection like normal then
#connection creation goes here
$dbh->do("INSERT INTO TABLE (COL1, COL2) VALUES('Val1', 'Val2')")or di
+e "I failed to insert";
There are more short cuts but this is standard SQL and if you use the DBI module as your interface it
should work.
(The reason I say should is because when I started in Perl I began to use databases that could handle my scripts ie. MySQL and Oracle).Please go and read the online documentation about DBI and DBD::ADO. There are examples of almost anything that you can do with DBI in there.
--
BigJoeLearn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.