• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in query using java code

 
Prasanna RamKumar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wrote query to select the words that start with the particular letter
iam giving through java code
it is showing errors
ResultSet rs = st.executeQuery
("select rootwords from wordlist where rootwords like '"+input%+"' ");


where input is the particular word iam getting from user
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make a query like this


("select rootwords from wordlist where rootwords like '"+input+"%' ");

Shailesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic