qq_34147601
MaQuanXin
2020-08-21 21:42

求帮忙把sql 转 一下lambda,lambda不知道怎么写出来,跪求

  • c#
  • asp.net
  • sql
表名:user
字段:Id(主键)
      Code(编号) 
      RecId(外键,关联Id)  

select Code,(select COUNT(*) from user where RecId = u.Id) as RecCount from user as u;
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答