• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to query using NamedParameterJdbcTemplate.query() method?

 
antsi klando
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not able to fetch two column values from the Database.

PFB the code



where the sql query is "select po_no, created_dtm from purchase_order where cust_order_no =765765878"
outputKeyNames = [poNumber, created_dtm].

The problem is that it fetches the poNumber for the first time.For the created_dtm it returns null.

Please suggest a method.
 
shai ban
Ranch Hand
Posts: 177
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the date format/timezone in db.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic