Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Pipe the Output of a SQL statement into the Input of another

by amphiplex (Monk)
on Jul 15, 2002 at 12:03 UTC ( [id://181835]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Pipe the Output of a SQL statement into the Input of another

Why not simply do
select c,a,b from table where something;
?
---- amphiplex

Replies are listed 'Best First'.
Re: Pipe the Output of a SQL statement into the Input of another
by Abigail-II (Bishop) on Jul 15, 2002 at 12:33 UTC
    Consider the following table:
     
       A  B  C  D
     
       4  5  1  7
       4  5  2  8
    
    And the where clause being D = 7. Then your select would return just one line, and miss the C = 2. If you first select the A = 4, B = 5, and then go for the C, you get both lines.

    Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://181835]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.