Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: MySQL insert via DBI

by AlexTape (Monk)
on Sep 20, 2011 at 08:34 UTC ( #926860=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    mysql>insert into $table (version,filename,release_notes,rec_level,os_
    +type) values ("1.0","1.txt","1.txt",3,4)\g
    
  2. or download this
      my $sth = $dbh->prepare("INSERT INTO $table(version,filename,release
    +_notes,rec_level,os_type) VALUES(?,?,?,?,?)");
      $sth->execute( "test","test","test",1,1);
    
  3. or download this
    $VAR1 = '    DBI::db=HASH(0x35bffc4) trace level set to 0x0/1 (DBI @ 0
    +x0/0) in D
    BI 1.616-ithread (pid 2144)
    ...
        <- finish= ( 1 ) [1 items] at sql.pl line 29
        <- disconnect= ( 1 ) [1 items] at sql.pl line 30
    ';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926860]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-11 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls