mySQL数据库错误You have an error in your SQL syntax

太极69 发布于 2013/08/05 17:57
阅读 2K+
收藏 0
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 'order by cid desc' at line 1

这是一个什么错误啊,请大侠指点

SQL Error:
MySQL Query Error
select * from dg_taobao_cat where cid= order by cid desc
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 'order by cid desc' at line 1
PHP Backtrace

File Line Function
\includes\db_mysql.class.php 92 db_mysql->halt()
\includes\table.class.php 119 db_mysql->query()
\taobao.php 79 TableClass->getdata()
\taobao\view.php 144 taobao_position()
\taobao.php 42 include_once()

加载中
1
桔子
桔子

select * from dg_taobao_cat where cid=xxxx order by cid desc

吧xxx先补全了

但是cid=具体指后面排序就没啥意义了


select * from dg_taobao_cat order by cid desc 这个也许是你要的


0
iflamed
iflamed
cid= 这个没有值,sql语句是有问题的。
返回顶部
顶部