Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: DBI quoting when I don't want it to

by shambright (Beadle)
on Aug 21, 2002 at 17:21 UTC ( [id://191800]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ( ($DATE =~ /month/) || ($DATE =~ /day/) ) {
      $statement = "DATE(NOW()+ INTERVAL $DATE)";
       } else {
       $statement = "$DATE";  #assumes YYYY-MM-DD
    }
    
  2. or download this
    INSERT into table (thisdate) VALUES ("$statement") WHERE id=1
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found