Results 1 to 3 of 3
Thread: java.sql.SQLException:
- 09-27-2011, 12:14 PM #1
java.sql.SQLException:
Java Code:String g="FUP1UN"; sql[1]=" select Confidence from cpm1 where Combinedrule= "+g;
i am Sql using 2000.java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'FUP1UN'
But,
This code executed successfully.Java Code:sql[1]=" select Confidence from cpm1 where Combinedrule='FUP1UN'";
Last edited by nandhinianand; 09-27-2011 at 12:19 PM.
- 09-27-2011, 03:50 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Re: java.sql.SQLException:
Note the difference between the two Strings...in particular the single quotes. Avoid this necessity by using PreparedStatement.
- 09-28-2011, 07:15 AM #3
Similar Threads
-
java.sql.sqlException
By harsimran05 in forum JDBCReplies: 1Last Post: 09-06-2011, 12:14 PM -
java.sql.SQLException: Invalid column name
By agangaia in forum JDBCReplies: 7Last Post: 04-14-2011, 01:06 PM -
java.sql.SQLException: System or internal error java.io.IOException: Stream closed
By ashok bhagat in forum Advanced JavaReplies: 0Last Post: 01-21-2011, 12:43 PM -
java.sql.SQLException: Exhausted Resultset
By boy22 in forum JDBCReplies: 2Last Post: 06-07-2010, 08:45 AM -
Unreported exception java.sql.SQLException
By javamula in forum AWT / SwingReplies: 4Last Post: 09-29-2009, 02:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks