Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 romping around the Monastery: (12)
As of 2015-07-29 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (261 votes), past polls