aspose file tools*
The moose likes JDBC and the fly likes pass a varble in WHERE clause instaed of a constant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "pass a varble in WHERE clause instaed of a constant" Watch "pass a varble in WHERE clause instaed of a constant" New topic
Author

pass a varble in WHERE clause instaed of a constant

naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

hi ranchers ,

i'm developing a application in JavaScript for TItanium(Android) where i need to execute a query something like :
i had number of rows in database with same date so i need to figure out that for each date how many rows are there
let say

above is working fine it is returing 2 rows

but i need to pass date in a variable like


its not working as desired returning 0 rows.how can i resolve this?
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
You might have forgotten the apostrophes that delimit a string literal.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass a varble in WHERE clause instaed of a constant