• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

COUNT+PSTMT error?

 
sahar sa
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear,
Im trying to find the count of rows who has Pmax . and I need to use PSTMT. but it throws me an error:
here is the code snippet:


here is the error:



do you know how can I declare this rowcount ?
thanks,
Sahar.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, but you do have to pass a String or int to the getInt() method. Stick some quotes round rowcount.
 
sahar sa
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wooow! thank you friend!
now it works!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic