again oracle

int x = Integer.parseInt (std_number.getText() );select * from Students where studentNumber = xwhen i execute this , there is an error like: 'x' is an invalid identifier.how i can pass an argument to a query
[237 byte] By [--Galatasaraya] at [2007-10-3 2:43:09]
# 1
select * from the_table where id = ?x
tarek_fathia at 2007-7-14 20:31:29 > top of Java-index,Java Essentials,New To Java...
# 2
Look at "PreparedStatment".Ted.
ted_trippina at 2007-7-14 20:31:29 > top of Java-index,Java Essentials,New To Java...
# 3
PreparedStatement and its bind methods.Start by reading a tutorial: http://java.sun.com/docs/books/tutorial/jdbc/index.htmlYou cannot write an application this way. You can't reasonably expect this forum to fill in all the blanks for you.%
duffymoa at 2007-7-14 20:31:29 > top of Java-index,Java Essentials,New To Java...