Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

DBD::mysql "Column count doesn't match value count"

by Random_Walk (Parson)
on Nov 28, 2006 at 18:19 UTC ( #586545=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    using prepared:
    INSERT into monica.event (msg, source, situation, version, date, hostn
    +ame, last_uid, sub_origin, component, guid, severity, adapter_host) v
    +alues (????????????)
    ...
    using direct:
    INSERT INTO monica.event (msg, source, situation, version, date, hostn
    +ame, last_uid, sub_origin, component, guid, severity, adapter_host) V
    +ALUES ('this is a test event, ignore', 'Testing', 'START', '0.1', '20
    +06-11-28 19:13:18', 'test', '', 'SelectDocument', 'IT_SERVICE', '6233
    +75574', 'CRITICAL', 'this_box')
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
            or die "can not execute sql: $DBI::errstr\n";
    
        print STDERR $/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://586545]
Approved by ikegami
Front-paged by derby
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-12-20 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls