Custom dynamic SQl statement
From: duxbuz (duxbuz_at_Xntlworld.com)
Date: 10/01/04
- Previous message: Paul O'Donnell: "Re: A good IDE??"
- Next in thread: IchBin: "Re: Custom dynamic SQl statement"
- Reply: IchBin: "Re: Custom dynamic SQl statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 01 Oct 2004 21:52:13 GMT
Hello,
I am still having no luck with the creation of a custom sql statement.
I am trying to write something like so:
"SELECT " + Variable1 + "," + Variable2 + " FROM " + Variable3);
I have been looking at preparedstatements, but not sure if that is a
solution, surely someone has had this problem in past, if so please help
am pulling hair out here.
I get an error: Unable to load database driver
Details: java.lang.ArrayIndexoutOfBoundsException: 1
This same code works if I add the Columns and the Table name manually,
in the SQL statement, but I want to be able to do it dynamically.
Thanks if anyone can help.
- Previous message: Paul O'Donnell: "Re: A good IDE??"
- Next in thread: IchBin: "Re: Custom dynamic SQl statement"
- Reply: IchBin: "Re: Custom dynamic SQl statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|