Delie
Posts: 12
Nickname: tuti
Registered: Oct, 2003
|
|
Re: I need an example of a query in Java
|
Posted: Jan 6, 2004 8:25 AM
|
|
Ok, here is the query i made, but i don't know if it works. The connection to the db exists, but it won't execute. To make it clearer it doesn't reach the line "qdsUser.executeQuery();".
I hope i am clearer know,
thank you!
//check validation of username and password in db
QueryDataSet qdsUser= new QueryDataSet(); qdsUser.setQuery(new com.borland.dx.sql.dataset.QueryDescriptor(databaseOne, "SELECT USERNAME from USER WHERE USER.\"USERNAME\"=" +username+ "AND USER.\"PASSWORD\"=" +password+" ", null, true,Load.ALL));
qdsUser.executeQuery();
|
|