Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to solve this

 
Nujin jacob
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
test
contains
id, name,address,insertiondate.
1 aaa xxxxxx 01-11-2005
2 bbb xxxxxx 01-11-2005
3 ccc xxxxxx 02-11-2005
4 ddd xxxxxx 05-11-2005
5 eee xxxxxx 11-11-2005
6 ggg xxxxxx 15-11-2005
7 rrr xxxxxx 21-11-2005


in my jsp programm i wanted to list the records when the user entering the date range value
eg: when the user enter the date range is

DateFrom: 01-11-2005 DateTO: 20-11-2005

here i wanted to display these below records

1 aaa xxxxxx 01-11-2005
2 bbb xxxxxx 01-11-2005
3 ccc xxxxxx 02-11-2005
4 ddd xxxxxx 05-11-2005
5 eee xxxxxx 11-11-2005
6 ggg xxxxxx 15-11-2005

how can i write SQL query of this above?
please help me..........
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35757
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nujin,
Welcome to JavaRanch!

Using a prepared statement, you can do:
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!