MYsQL数据库问题,请各位老大帮忙
[Type]查询语句错误[1064]YouhaveanerrorinyourSQLsyntax;checkthemanualthatcorrespondstoyourMy...
[Type] 查询语句错误
[1064] 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 'DESC LIMIT 0, 10' at line 1
[Query] SELECT t.*, f.name FROM forum_thread t, forum_forum f WHERE f.status<>'3' AND f.fid=t.fid AND t.displayorder not IN(-1,-2) AND t.replies!=0 AND t.dateline>0 ORDER BY t. DESC LIMIT 0, 10
Discuz! Database Error The database has encountered a problem. Need Help?Error messages: [Type] 查询语句错误
[1064] 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 'DESC LIMIT 0, 10' at line 1
[Query] SELECT t.*, f.name FROM forum_thread t, forum_forum f WHERE f.status<>'3' AND f.fid=t.fid AND t.displayorder not IN(-1,-2) AND t.replies!=0 AND t.dateline>0 ORDER BY t. DESC LIMIT 0, 10 Program messages: [Line: 0055]forum.php(runhooks)
[Line: 1188]source\function\function_core.php(hookscript)
[Line: 1230]source\function\function_core.php(plugin_thread_list_forum->index_top)
[Line: 0109]source\plugin\thread_list\thread_list.class.php(thread_list_query)
[Line: 0019]source\plugin\thread_list\thread_list.func.php(DB::query)
我QQ420398323 ,谢谢 展开
[1064] 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 'DESC LIMIT 0, 10' at line 1
[Query] SELECT t.*, f.name FROM forum_thread t, forum_forum f WHERE f.status<>'3' AND f.fid=t.fid AND t.displayorder not IN(-1,-2) AND t.replies!=0 AND t.dateline>0 ORDER BY t. DESC LIMIT 0, 10
Discuz! Database Error The database has encountered a problem. Need Help?Error messages: [Type] 查询语句错误
[1064] 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 'DESC LIMIT 0, 10' at line 1
[Query] SELECT t.*, f.name FROM forum_thread t, forum_forum f WHERE f.status<>'3' AND f.fid=t.fid AND t.displayorder not IN(-1,-2) AND t.replies!=0 AND t.dateline>0 ORDER BY t. DESC LIMIT 0, 10 Program messages: [Line: 0055]forum.php(runhooks)
[Line: 1188]source\function\function_core.php(hookscript)
[Line: 1230]source\function\function_core.php(plugin_thread_list_forum->index_top)
[Line: 0109]source\plugin\thread_list\thread_list.class.php(thread_list_query)
[Line: 0019]source\plugin\thread_list\thread_list.func.php(DB::query)
我QQ420398323 ,谢谢 展开
1个回答
展开全部
SELECT t.*, f.name FROM forum_thread t, forum_forum f WHERE f.status<>'3' AND f.fid=t.fid AND t.displayorder not IN(-1,-2) AND t.replies!=0 AND t.dateline>0 ORDER BY t. DESC LIMIT 0, 10
你这个有语法错了
order by 后面没字段了!!!
你这个有语法错了
order by 后面没字段了!!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询