SQL多个表组合成一个表:
strSql.Append(@"Select N.NotificationOptionId, S.FullName, No.Title, N.SortCode, N.Content, N.CreateDate, N.CreateUserId, N.CreateUserName, N.ModifyDate, N.ModifyUserId, N.ModifyUserName From (NotificationOption As N Inner Join Sys_Company AS S On S.CompanyId=N.SchoolCode) Inner Join Notifications AS No On No.NotificationId=N.NotificationId Where 1=1");
SQL多表联合查询
本文介绍了一种使用SQL进行多表联合查询的方法。通过具体的代码示例,展示了如何将NotificationOption、Sys_Company和Notifications三个表的数据组合在一起,并列出所需字段。
9711

被折叠的 条评论
为什么被折叠?



