www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] SQL statment in .java file

  1. #1
    Join Date
    Sep 2008
    Location
    USA
    Posts
    130

    resolved [RESOLVED] SQL statment in .java file

    So I have this file named billing.java and I was wanting to know if I can put SQL statement in this file. And if so how would I go about doing this.

    I would really like to put it in an IF statement.
    Example:

    Code:
    if (billingsystem== billing1)
    {
    select.........sql statement
    }
    if(billingsystem==billing2)
    {
    select......some sql statement
    }
    if(billingsystem==billing3)
    {
    select......some kind of sql statement
    }
    any help would be great!!!
    Happy Code Writing!


    Think, think, think......just like pooh does!

  2. #2
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    I think you're looking for JDBC
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Sep 2008
    Location
    USA
    Posts
    130
    thanks you where right.
    Happy Code Writing!


    Think, think, think......just like pooh does!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles