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");

 

相关文章:

  • 2021-07-06
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案