in reply to SQL in files or File::Slurp?
So - this makes a case for in-lining the SQL.my $myClient = 97; my $deliverymethod = 'USPS'; my $sql =<<"__SQL__"; SELECT ORDER_ID, .... CONVERSION_SERIAL FROM INTEGRATION.OL_ORDER WHERE CLIENT_ID = $myClient AND BATCH_ID = (SELECT * FROM (SELECT BATCH_ID FROM OL_ORDER WHERE CLIENT_ID = $myClient AND DELIVERY_METHOD ='$deliverymethod' GROUP BY BATCH_ID ORDER BY BATCH_ID DESC NULLS LAST) WHERE ROWNUM <= 1) __SQL__
Profanity is the one language all programmers know best.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: SQL in files or File::Slurp?
by MidLifeXis (Monsignor) on Aug 04, 2014 at 18:49 UTC | |
Re^2: SQL in files or File::Slurp?
by crusty_collins (Friar) on Aug 04, 2014 at 21:55 UTC |