永发信息网

请问这个语句错在哪里?

答案:4  悬赏:0  手机版
解决时间 2021-04-23 07:40

select tb_CompanyInfo.co_gsname AS Pgsname,tb_city.citytype AS Pgzdd ,tb_PositionInfo.ID AS PID,tb_PositionInfo.gzxz AS Pgzxz,tb_PositionInfo.zprs AS Pzprs,tb_PositionInfo.gzjy AS Pgzjy,tb_PositionInfo.zhicheng AS Pzhicheng, tb_PositionInfo.zwmc AS Pzwmc, tb_PositionInfo.zyyq AS Pzyyq, tb_PositionInfo.gzjy, tb_PositionInfo.xlyq AS Pxlyq, tb_PositionInfo.xbyq AS Pxbyq, tb_PositionInfo.wyyq AS Pwyyq, tb_PositionInfo.jsjnl AS Pjsjnl, tb_PositionInfo.hj AS Phj, tb_PositionInfo.nlyq AS Pnlyq, tb_PositionInfo.hyzk AS Phyzk, tb_PositionInfo.xjsp AS Pxjsp, tb_PositionInfo.gycd AS Pgycd, tb_PositionInfo.tgss AS Ptgss, tb_PositionInfo.beizhu AS Pbeizhu, tb_PositionInfo.addtime AS Paddtime

from tb_PositionInfo CROSS JOIN tb_CompanyInfo CROSS JOIN tb_city

where tb_PositionInfo.gsname=tb_CompanyInfo.ID AND tb_city.cityID=tb_PositionInfo.gzdd AND ID=" + Request["PID"]

最佳答案

用我教你的那个吧~~~一个一个的来~~不要用组合查询了~太容易出错了~~

全部回答
表连接少了ON关键字,

AND ID=" + Request["PID"]

这里报错。双引号单个的出现了一个。

你是不是代码粘多了?

select tb_CompanyInfo.co_gsname AS Pgsname,tb_city.citytype AS Pgzdd ,tb_PositionInfo.ID AS PID,tb_PositionInfo.gzxz AS Pgzxz,tb_PositionInfo.zprs AS Pzprs,tb_PositionInfo.gzjy AS Pgzjy,tb_PositionInfo.zhicheng AS Pzhicheng, tb_PositionInfo.zwmc AS Pzwmc, tb_PositionInfo.zyyq AS Pzyyq,( tb_PositionInfo.gzjy)是不是少东西, tb_PositionInfo.xlyq AS Pxlyq, tb_PositionInfo.xbyq AS Pxbyq, tb_PositionInfo.wyyq AS Pwyyq, tb_PositionInfo.jsjnl AS Pjsjnl, tb_PositionInfo.hj AS Phj, tb_PositionInfo.nlyq AS Pnlyq, tb_PositionInfo.hyzk AS Phyzk, tb_PositionInfo.xjsp AS Pxjsp, tb_PositionInfo.gycd AS Pgycd, tb_PositionInfo.tgss AS Ptgss, tb_PositionInfo.beizhu AS Pbeizhu, tb_PositionInfo.addtime AS Paddtime

from tb_PositionInfo CROSS JOIN tb_CompanyInfo CROSS JOIN tb_city

where tb_PositionInfo.gsname=tb_CompanyInfo.ID AND tb_city.cityID=tb_PositionInfo.gzdd AND ID=" + Request["PID"]

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
暗恋一个人怎么忘记她?
I hope you can soon.
CF有人说12月要停?
人在几岁结婚最合适
男朋友让我等他三年,我该等吗?
我的亲大哥64岁因病去世,在他去世后的好像第
晚上吃橙子会胖吗,晚上吃橙子。苹果好吗?
数控机床字母各代表什么
帮我看看这是什么意思怎么解决!
现在的大人小孩张嘴就是爱字呢是不是涉黄
德济堂药房国医馆地址有知道的么?有点事想过
YAMAHAYBR125R 和巡鹰125那个比较适合大乡镇
人可不可以不学习?
我视力不是很好,假性近视。。我想通过用医学
以博字开头的成语,形容艺术的,名人名言也行
推荐资讯
怎样传照片
谁看过《妇产科的女人们》?
飞机安全带怎么,坐飞机安全带的系法 坐飞机的
公司银行开户需要什么,公司开户需要准备什么
如何配置smb可以被哪些IP所用.
表达不想失去你的句子,我开心你想我,我难过你
在哪有中世纪1全面战争下载??
征途是星辰大海上一句,手可摘星辰上一句是什
遨游浏览器问题
农行的前海人寿可靠吗有没有问题
蒙娜丽莎十字绣批发站
USB视频头驱动...下面有型号单....求个能用的
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?