| | |
java.sql.SQLException: Column not found
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 3
Reputation:
Solved Threads: 0
Hi all,
i am new to java servlets. i simply created a login form with username and password fields. now when i deployed it on tomcat server, after i click on submit button it gives the following error:
java.sql.SQLException: Column not found
codin of this login servlet is attached below. i have used username,password,name and address fields in my table(database). i have created it using ms-access.
please reply asap!!!
i am new to java servlets. i simply created a login form with username and password fields. now when i deployed it on tomcat server, after i click on submit button it gives the following error:
java.sql.SQLException: Column not found
codin of this login servlet is attached below. i have used username,password,name and address fields in my table(database). i have created it using ms-access.
please reply asap!!!
2
#2 Oct 10th, 2009
Hi ankiwalia and welcome to Daniweb 
Your SQL syntax is incorrect. Instead of this:
Try this:

Your SQL syntax is incorrect. Instead of this:
java Syntax (Toggle Plain Text)
String query="select username and password from Registeredusers";
java Syntax (Toggle Plain Text)
String query="select username, password from Registeredusers";
Last edited by darkagn; Oct 10th, 2009 at 9:46 pm. Reason: Welcome new member
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. ![]() |
Similar Threads
- JAVA Sql error: Column not found (Java)
- Java SQL update syntax (Java)
- MySQL error java.sql.SQLException: Parameter index out of range (0 < 1 ). (Java)
- java.sql.SQLException: Invalid column type: 1111 (Java)
- error while retroeving data from mqsql database (JSP)
- java.sql.SQLException: Invalid column index (Java)
- Error java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle (Java)
Other Threads in the Java Forum
- Previous Thread: MS ACCESS SQL statement help!
- Next Thread: how to differentiate between data packet and voice packet?
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress input integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle parsing plazmic print problem program programming project recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows





