梦境19 2013-11-07 07:28
浏览 887

求大神,帮忙把SQL转成LINQ,小弟第一次涉及LINQ需要参考谢谢了

select * from (
select a.code,a.gid from productonsale a,
productinformation b,
GeneralStandardCategory c
where a.prodid=b.gid
and b.StdCatID =c.gid
and c.code in ('607','609')
and a.ChlID='0DB3B832-3E16-E111-A1F0-4437E63336BD'
union all
select a.code,a.gid from productonsale a,
productinformation b,
GeneralStandardCategory c,
ProductAttribute d,
(select gid,matter from GeneralResource where matter like '%1860%') e
where a.prodid=b.gid
and b.StdCatID =c.gid
and a.prodid=d.prodid
and d.content=e.gid
and c.code in ('603','602')
and a.ChlID='0DB3B832-3E16-E111-A1F0-4437E63336BD'
) date where Gid='5577b910-103a-e311-a37d-00e081d461dd'

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
    • ¥30 数字电源对DSP芯片的具体要求
    • ¥20 antv g6 折线边如何变为钝角
    • ¥30 如何在Matlab或Python中 设置饼图的高度
    • ¥15 nginx中的CORS策略应该如何配置
    • ¥30 信号与系统实验:采样定理分析
    • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao
    • ¥20 Vite 打包的 Vue3 组件库,图标无法显示
    • ¥15 php 同步电商平台多个店铺增量订单和订单状态
    • ¥17 pro*C预编译“闪回查询”报错SCN不能识别