public IList<MenuModel> GetAllMenu() { using (IMMEntities context = new IMMEntities()) { var menuList = from A in context.BASE_FUNCTION join B in context.BASE_MENU on A.FUNCTION_ID equals B.FUNCTION_ID select new MenuModel { Function = new FunctionM
SQL> select t1.* from t1,t2 where t1.object_id=t2.object_id; rows selected. Execution Plan ---------------------------------------------------------- -------------------------------------------------------------------------------- ------- | Id | Oper
SQL> select * from employees d, departments t where d.department_id=t.department_id; rows selected. Execution Plan ---------------------------------------------------------- ----------------------------------------------------------------------------
SQL; SAL ---------- Execution Plan ---------------------------------------------------------- -------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | --------
正常查询语句中TOP的运用: SELECT TOP 1000 * FROM MP_MemberGrade 随意更新一张表中满足条件的前N条数据: UPDATE TOP (1) MP_Member SET FKGradeID=2 WHERE IsDeleted=2 更新A表中满足B表前N条记录的数据 UPDATE MP_Member SET FKGradeID=2 FROM MP_Member A LEFT JOIN (SELECT TOP 10 * FROM MP_MemberGrade