Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: DBI or mysqlimport?

by gmax (Abbot)
on Jun 07, 2004 at 21:38 UTC ( #362125=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    INSERT INTO tablename (col1, col2, col3) VALUES
    (value1, value2, value3), 
    (value1, value2, value3), 
    (value1, value2, value3), 
    (value1, value2, value3);
    
  2. or download this
    my @values = (
        ["A", "B", "D", "0"],
    ...
              . join(",\n", ( map { "(". join ( ", ", 
                map {$dbh->quote($_)} @$_). ")" }
                @values));
    
  3. or download this
    ALTER TABLE tablename DISABLE KEYS;
    
    # do the insertion
    
    ALTER TABLE tablename ENABLE KEYS;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-10-17 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?