早教吧作业答案频道 -->英语-->
数据库问题MySQLQuery:selecta.url,a.thumb,a.title,b.pricestartfromhousecontenta,housechousMySQLQuery:selecta.url,a.thumb,a.title,b.pricestartfromhousecontenta,housechousebwherea.contentid=b.contentidandcatid=20andareaid=1
题目详情
数据库问题MySQL Query :select a.url,a.thumb,a.title,b.pricestart from house_content a,house_c_hous
MySQL Query :select a.url,a.thumb,a.title,b.pricestart from house_content a,house_c_house b where a.contentid=b.contentid and catid=20 and areaid=1 and a.contentid and status=99 order by a.posids desc,a.contentid desc LIMIT 5
MySQL Error :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 'and status=99 order by a.posids desc,a.contentid desc LIMIT 5' at line 1
MySQL Errno :1064
Message :MySQL Query Error
这是什么问题呢?请大虾们帮帮
MySQL Query :select a.url,a.thumb,a.title,b.pricestart from house_content a,house_c_house b where a.contentid=b.contentid and catid=20 and areaid=1 and a.contentid and status=99 order by a.posids desc,a.contentid desc LIMIT 5
MySQL Error :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 'and status=99 order by a.posids desc,a.contentid desc LIMIT 5' at line 1
MySQL Errno :1064
Message :MySQL Query Error
这是什么问题呢?请大虾们帮帮
▼优质解答
答案和解析
明显 and 语法错误啊!
另外,status是保留字,建议别用在字段名上
另外,status是保留字,建议别用在字段名上
看了 数据库问题MySQLQuer...的网友还看了以下:
由“2,a,b”三个元素构成的集合与由“2a,2,b”三个元素构成的集合是同一个集合,求a,b的值 2020-04-05 …
.,他从A地发出向西走150米,然后折回向东走50.小华在东西走向的大路上晨练,他从A地发出向西走 2020-05-22 …
如图7甲所示,用粘性材料粘在一起的A、B两物块静止于光滑水平面上,两物块的质量分别为mA=lkg、 2020-06-26 …
A、B、C三人各有苹果若干,要求互相赠送,先由A给B、C,所给的苹果数等于B、C原来各有的苹果数; 2020-07-22 …
数据库问题MySQLQuery:selecta.url,a.thumb,a.title,b.pri 2020-07-23 …
A、B、C、D四人完成一件工作,D做了一天因事请假,结果A做了6天,B做了5天,C做了4天,D作为 2020-07-30 …
在形如ab=N的式子中,我们已经研究过已知a和b,求N,这种运算就是乘方运算.现在我们研究另一种情 2020-08-01 …
(2012•宿迁三模)有机物A和B是正处于临床试验阶段的小分子抗癌药物,结构如下:关于有机物A和B的 2020-12-18 …
数据结构,根据对称矩阵,求某位置的地址A是一个10*10的对称矩阵,若采用行优先的下三角压缩存储,第 2020-12-23 …
如图,质量均为m的物块A和B与轻弹簧相连接放置在水平地面上.(1)将物块B固定不动,使A在竖直方向上 2020-12-31 …