Click to See Complete Forum and Search --> : [RESOLVED] SQL statment in .java file


starheartbeam
02-02-2009, 02:26 PM
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:

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!!!

chazzy
02-02-2009, 06:45 PM
I think you're looking for JDBC (http://www.google.com/search?q=JDBC)

starheartbeam
02-06-2009, 08:57 AM
thanks you where right.