<分区>
我需要在最晚日期之前订购我的数据。
此 SQL 语句有效
final String selectSql = "select * from questionnaire where userprofileid=" + userProfileID ;
此 SQL 语句** 不工作**
final String selectSql = "select * from questionnaire where userprofileid=" + userProfileID +"ORDER by datecreated desc";
Error Message:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by datecreated desc' at line 1