>I want to query a table that depending on jdbTextField1.getText(). That
>is to say the content of jdbTextField1.getText() is the name of table i
>want to query. I tried to used these SQL codes:
>SELECT *
>FROM :table_name;// table_name = jdbTextField1.getText()
>But it doesn't work. Help~!
You will need something along this line:
String tableName = whichTable.getText();
String query = "SELECT * FROM " + tableName;

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.