码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
asp.net mvc SelectList使用
action代码:BusinessPublicContent pc = db.BusinessPublicContent.Where(m => m.BusinessPublicContentID == id).FirstOrDefault(); ViewBag.data = p...
分类:Web程序   时间:2015-11-25 19:21:01    阅读次数:510
linq左联接
from t in _entity.TB_OrderInfo where t.OrderCode == courOrderCode || t.CounierCode == courOrderCode && t.IsDel == "N" join b in _entit...
分类:其他好文   时间:2015-11-25 18:51:55    阅读次数:102
MySQL 优化之 ICP (index condition pushdown:索引条件下推)
ICP技术是在MySQL5.6中引入的一种索引优化技术。它能减少在使用 二级索引 过滤where条件时的回表次数 和 减少MySQL server层和引擎层的交互次数。在索引组织表中,使用二级索引进行回表的代价相比堆表中是要高一些的。相关文档地址:http://dev.mysql.com/doc/r...
分类:数据库   时间:2015-11-25 13:06:17    阅读次数:261
几个SQL
select sum(`value`) from testtable where value != 'error' AND type ='b' in (select DISTINCT(type) from testtable);SELECT type,subtype,SUM(value) AS TO...
分类:数据库   时间:2015-11-25 11:26:17    阅读次数:207
Sql Server索引
先创建一个示例表temp对表中Name字段创建一个索引if exists(select name from sysindexes where name = 'suoyin')drop index temp.suoyin ---如果存在这个名字的索引,则删除这个索引create nonclustere...
分类:数据库   时间:2015-11-24 22:04:07    阅读次数:200
[SQL]查询表里的字段名
Select Name from syscolumns Where ID=OBJECT_ID('表名')select * from information_schema.tables WHERE TABLE_TYPE='BASE TABLE' OR TABLE_TYPE='VIEW'select *...
分类:数据库   时间:2015-11-24 14:50:03    阅读次数:197
ORA-12516: TNS: 监听程序无法找到匹配协议栈的可用句柄解决方法
1.查看当前连接进程数SQL>select count(*) from v$process;2.查看连接数上限SQL>select value from v$parameter where name = 'processes'; 3.查看当前数据库的processes设置SQL> show para...
分类:其他好文   时间:2015-11-24 14:40:00    阅读次数:145
sql分页
select top 5 * from Messages where MessageId not in(select top (5*2) MessageId from Messages order by MessageDate desc) order by MessageDate desc
分类:数据库   时间:2015-11-24 12:54:22    阅读次数:173
GDB Core,gdb 调试大全,core文件调试
编译: gcc -g -o hello hello.c gdb 调试:基本 gdb 命令.命 令 描 述小结:常用的gdb命令 backtrace 显示程序中的当前位置和表示如何到达当前位置的栈跟踪(同义词:where) breakpoint 在程序中设置一个断点...
分类:数据库   时间:2015-11-24 12:38:47    阅读次数:137
MVC V接受C中传递过来的数据库表单对象时候 出现的一个问题!
var models = (from u in db.ModelLibrary where u.ModelID == ModelID select u).FirstOrDefault(); ret...
分类:数据库   时间:2015-11-24 12:30:28    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!