• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in retrieving data

 
Arun Kumar Gaddam
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DriverManager.getConnection(...........);
System.out.println("connected-->");
String check="Arun";
String vsql="select * from phoneproj where cont_name= __________";
Statement stmt= con.createStatement();
ResultSet rs= stmt.executeQuery(vsql);

Now what can i add in the blank to retrieve data whose contact name is Arun.
i can't able to write .....any one please help......thanks in advance
javascript: x()
banghead
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"select * from phoneproj where cont_name='"+check+"'";

Regards

Jetendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic