帮看看这个sql语法有没有问题

cnljc 2009-08-11 07:51:42
select a.*,b.id from a.Goodsimage,b.Goodsinfo
where a.sortid=1 and a.gid=b.id and b.typeid=21
order by a.id desc

图片表Goodsimage,信息表Goodsinfo

这句语法有问题没有??
...全文
44 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ygyjack 2009-08-11
  • 打赏
  • 举报
回复
a.Goodsimage,b.Goodsinfo
哦, 表名....
ygyjack 2009-08-11
  • 打赏
  • 举报
回复
没有问题.
hookee 2009-08-11
  • 打赏
  • 举报
回复
select a.*, b.id as bid from Goodsimage a, Goodsinfo b
where a.sortid=1 and a.gid=b.id and b.typeid=21
order by a.id desc

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧