action代码:BusinessPublicContent pc = db.BusinessPublicContent.Where(m => m.BusinessPublicContentID == id).FirstOrDefault(); ViewBag.data = p...
分类:
Web程序 时间:
2015-11-25 19:21:01
阅读次数:
510
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
ICP技术是在MySQL5.6中引入的一种索引优化技术。它能减少在使用 二级索引 过滤where条件时的回表次数 和 减少MySQL server层和引擎层的交互次数。在索引组织表中,使用二级索引进行回表的代价相比堆表中是要高一些的。相关文档地址:http://dev.mysql.com/doc/r...
分类:
数据库 时间:
2015-11-25 13:06:17
阅读次数:
261
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
先创建一个示例表temp对表中Name字段创建一个索引if exists(select name from sysindexes where name = 'suoyin')drop index temp.suoyin ---如果存在这个名字的索引,则删除这个索引create nonclustere...
分类:
数据库 时间:
2015-11-24 22:04:07
阅读次数:
200
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
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
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
编译: gcc -g -o hello hello.c gdb 调试:基本 gdb 命令.命 令 描 述小结:常用的gdb命令 backtrace 显示程序中的当前位置和表示如何到达当前位置的栈跟踪(同义词:where) breakpoint 在程序中设置一个断点...
分类:
数据库 时间:
2015-11-24 12:38:47
阅读次数:
137
var models = (from u in db.ModelLibrary where u.ModelID == ModelID select u).FirstOrDefault(); ret...
分类:
数据库 时间:
2015-11-24 12:30:28
阅读次数:
140