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

SQl logic inPerl

by Anonymous Monk
on Jul 14, 2010 at 17:18 UTC ( [id://849572]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ...code sql connect...
    my $year = param('year') || ''; # for testing only
    ...
    where acc = '12345' and ( (year='$year') or (year = $year + 1) )";
    my $res= $dbh->exec_select( $sql );
    ...code
    
  2. or download this
    ...code
    my $year = param('year') || ''; # for testing only
    ...
    from mytable
    where acc = '12345' and ( (year='$year') or (year = $year + 1) )";
    ...code
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://849572]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-03-28 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found