永发信息网

请问这个语句错在哪里?

答案:4  悬赏:0  手机版
解决时间 2021-04-23 07:40
  • 提问者网友:鼻尖触碰
  • 2021-04-22 12:18

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"]

最佳答案
  • 五星知识达人网友:爱难随人意
  • 2021-04-22 12:45

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

全部回答
  • 1楼网友:猎心人
  • 2021-04-22 15:47
表连接少了ON关键字,
  • 2楼网友:纵马山川剑自提
  • 2021-04-22 14:54

AND ID=" + Request["PID"]

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

你是不是代码粘多了?

  • 3楼网友:孤独的牧羊人
  • 2021-04-22 14:17

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"]

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯