摘要:
1.线程池线程池维护一个请求队列,线程池的代码从队列提取任务,然后委派给线程池的一个线程执行,线程执行完不会被立即销毁,这样既可以在后台执行任务,又可以减少线程创建和销毁所带来的开销线程池线程默认为后台线程(IsBackground)namespace Test{ class Program ... 阅读全文
摘要:
1.查询 1)Controllers /// /// 数据上下文对象 /// OumindBlogEntities db = new OumindBlogEntities(); #region 查询文章列表 /// /// 查询文章列表 /// /// public ActionResult Index() { //linq List list = (from d in db.BlogArticles w... 阅读全文
摘要:
1.union 和union all 操作符1)union内部的select语句必须拥有相同的列,列也必须有相似的数字类型。同时,每条select语句中列的顺序相同。union语法(结果集无重复)select x from table1union select y from table2union all语法(结果集有重复)select x from table1union allselect y from table22.CTE(Common Table Expression)公共表表达式,可以认为是在单个 SELECT、INSERT、UPDATE、DELETE 或 CREATE ⅥEW 语 阅读全文