Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I am not getting a sum for report in java  RSS feed

 
owaisee Akbar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a query in access which is running in access but when i run that in java it returns null value.


I also have a problem that how can i implement between clause with date.

Another one is that when i ask for date it is in it is in yyyy-mm-dd format i set date in dd-mm-yy format and short. but when i call it it shows first year than month and than day
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36875
481
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Owaisee,
Welcome to Javaranch!

I strongly advise using a prepared statement for this query. Among other things, it allows the driver to handle date format issues.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!