码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
学习笔记32_EF查询优化
*如果有 var temp = from m in dbContext.Model1 where m.属性1 == value select m; foreach(var m1 in temp)//这里查询了一次 { foreach(var m2 in m1.Model2)//这里每次都查 { } ...
分类:其他好文   时间:2017-06-10 16:50:36    阅读次数:187
Oracle相关知识做个总结
一、创建用户: 以系统管理员登陆,右键点击Uers进行新建, 一般:默认空间选择USERS,临时表空间选择TEMP,概要文件选择DEFAULT。 对象权限:不做操作。 角色权限:1、connect 2、resource 3、authenticateduser 4、dba 系统权限:1、create  ...
分类:数据库   时间:2017-06-09 22:29:56    阅读次数:161
shell脚本使用技巧2
0--stdin标准输入 1--stdout标准输出 2--stderr标准错误 重定向 echo "this is a good idea " > temp.txt temp.txt内容会被首先清空后再输入“this is a good idea” 追加 echo "this is a bad i ...
分类:系统相关   时间:2017-06-09 00:49:04    阅读次数:230
交换操作 swap
一个类定义一个swap函数通常需要一次拷贝和两次赋值 例如 A类的两个对象v1与v2交换 A temp=v1; //copy构造一个临时对象 v1=v2; //赋值运算 v2=temp; //赋值运算 如果采用指针交换则可以减少一次拷贝构造 A* temp=v1; v1=v2; //赋值运算 v2= ...
分类:其他好文   时间:2017-06-08 23:46:04    阅读次数:234
Python_字符串简单加密解密
1 def crypt(source,key): 2 from itertools import cycle 3 result='' 4 temp=cycle(key) 5 for ch in source: 6 result=result+chr(ord(ch)^ord(next(temp))) ... ...
分类:编程语言   时间:2017-06-08 15:00:16    阅读次数:311
stl中的transform()注意其与for_each的不同点(有无返回值)
#include using namespace std; #include"vector" #include"algorithm" #include"list" #include"functional" // void PrintV(vector &temp) { for (vector::ite... ...
分类:其他好文   时间:2017-06-07 23:21:43    阅读次数:362
selectSort
function selectSort(arr) { var len = arr.length; for (var i = 0; i arr[j]) { var temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; }... ...
分类:其他好文   时间:2017-06-07 22:28:06    阅读次数:184
冒泡排序
//冒泡排序 #include <stdio.h> int bubble_sort(int a[],int n) { int i,j; int temp; for(i = 0;i < n;i++) { for(j = i;j < n;j++) { if(a[i] > a[j]) { temp = a ...
分类:编程语言   时间:2017-06-07 20:50:02    阅读次数:142
oralce sql 创建指定时间段内的日历信息
-- Create table create table TEMP_CALENDAR ( MONTH VARCHAR2(6), W_7 VARCHAR2(2), W_1 VARCHAR2(2), W_2 VARCHAR2(2), W_3 VARCHAR2(2), W_4 VARCHAR2(2), W ...
分类:数据库   时间:2017-06-07 18:54:38    阅读次数:187
Nginx 目录结构
[root@web03 nginx]# lsclient_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp [root@web03 nginx]# tree .|-- client_body_temp ...
分类:其他好文   时间:2017-06-07 16:21:54    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!