I am using a simplest SQL clause to retrieve user id,
String query = "SELECT * FROM `login` WHERE `user_id` LIKE `userid` ";
in here, user_id is column, userid is input variable and not null,
when debug, system always report following errors,
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userid' in 'where clause'
I can print userid as Allan, userid is String type and current value is "Allan". Why system unable to compare column and input variable?
Thank you very much in advance!
Rosemary