Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Keep It Simple, Stupid
 
PerlMonks  

Re: DBI: pipe data to "load data local infile"?

by djp (Hermit)
on Jan 18, 2010 at 11:16 UTC ( #817963=note: print w/ replies, xml ) Need Help??


in reply to DBI: pipe data to "load data local infile"?

On Linux and certain Unixes, /dev/stdin is a pathname for standard input. You could use two processes connected by a pipe; the first process reads and massages the data and writes it to standard output, and the second process uses "Load data local infile" with /dev/stdin as the filename. 'man stdin' for details. Hope this helps.


Comment on Re: DBI: pipe data to "load data local infile"?
Re^2: DBI: pipe data to "load data local infile"?
by richardwfrancis (Sexton) on Jan 19, 2010 at 14:06 UTC

    Thanks djp I'll look in to that. That's useful info to know even if I don't use it for this project.

    Cheers.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-04-20 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (488 votes), past polls