需要 zend_select() 加入方面的帮助
我目前正在使用 Zend 框架,我需要帮助将此查询转换为 zend_select() 格式。有人可以帮我吗
提前非常感谢!
SELECT p .*
FROM provider p
INNER JOIN providerReligionPreference prp ON p.providerId = prp.providerid
INNER JOIN providerServicePreference psp ON p.providerId = psp.providerId
INNER JOIN areaProviderPreference ap ON p.providerID = ap.providerId
INNER JOIN quote q ON q.quoteTypeId = prp.quoteTypeId
AND q.quoteTypeId = psp.quoteTypeId
AND q.religionTypeId = prp.religionTypeId
AND q.serviceTypeId = psp.serviceTypeId
AND q.postcodeId = q.postcodeId
WHERE q.quoteId = 2
GROUP BY p.providerId
I'm currently working with Zend framework and I need help to convert this query to zend_select() format. Can someone kindly help me out please
Thanks so much in advance!
SELECT p .*
FROM provider p
INNER JOIN providerReligionPreference prp ON p.providerId = prp.providerid
INNER JOIN providerServicePreference psp ON p.providerId = psp.providerId
INNER JOIN areaProviderPreference ap ON p.providerID = ap.providerId
INNER JOIN quote q ON q.quoteTypeId = prp.quoteTypeId
AND q.quoteTypeId = psp.quoteTypeId
AND q.religionTypeId = prp.religionTypeId
AND q.serviceTypeId = psp.serviceTypeId
AND q.postcodeId = q.postcodeId
WHERE q.quoteId = 2
GROUP BY p.providerId
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在模型方法中,您可以按照以下方式进行操作:
In a model method you could smth along these lines :