Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 taking refuge in the Monastery: (3)
As of 2020-08-15 01:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (78 votes). Check out past polls.

    Notices?