The Artima Developer Community
Sponsored Link

Java Answers Forum
example query in java?

1 reply on 1 page. Most recent reply: Jan 12, 2004 8:16 PM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Delie

Posts: 12
Nickname: tuti
Registered: Oct, 2003

example query in java? Posted: Dec 16, 2003 8:26 AM
Reply to this message Reply
Advertisement
For example a query that checks if the username the user entered matches with the one in the database. I think my question makes sense, because java uses a different syntax (a few things) for queries. If you have one post it to me...thank you.


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: example query in java? Posted: Jan 12, 2004 8:16 PM
Reply to this message Reply
Java dont use different syntax.

It uses plsql query only.

Statement statement = conn.createStatement();
query = readQuery(queryFile);
ResultSet result = statement.executeQuery("select * from tb1...." );
 

Flat View: This topic has 1 reply on 1 page
Topic: Reading and Writing to a CD-Rom Previous Topic   Next Topic Topic: User defined packages

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use