查询表字段 pingid = (1,2,3,)用正则select * from linkinfo where pingid regexp '[[::]]'用FIND_IN_SET()SELECT * FROM linkinfo WHERE FIND_IN_SET( '1', pingid )原来以为...
分类:
其他好文 时间:
2014-06-20 22:34:52
阅读次数:
254
EF中使用SQL语句或存储过程1、无参数查询varmodel= db.Database.SqlQuery("select* from UserInfoes ").ToList();2、有参查询var model= db.Database.SqlQuery("select* from UserInfo...
分类:
数据库 时间:
2014-06-20 22:08:34
阅读次数:
408
WSS logging database grows very fast and it cause the storage problem most of the time in sharepoint server 2010.To reduce the size of the logging dat...
分类:
数据库 时间:
2014-06-20 22:04:05
阅读次数:
333
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for...
分类:
其他好文 时间:
2014-06-20 21:48:33
阅读次数:
254
1.使用.exe扩展名2.使用 cmd /c ""3.在 PowerShell v3 中有另一种选择来解决这个问题,只需在命令行的任意位置添加 –% 序列(两个短划线和一个百分号)PowerShell 就不会再去解析剩下的部分From:http://www.pstips.net/using-wind...
分类:
其他好文 时间:
2014-06-20 21:47:13
阅读次数:
195
select * from opendatasource('SQLOLEDB' , 'Data Source=172.27.xxx.xxx; User ID=Admin;Password=xxx').[数据库名].dbo.表名备注:数据名的中括号和dbo一定要写,不然找不到
分类:
数据库 时间:
2014-06-20 21:33:59
阅读次数:
230
前几天用cocos2d-x写了个贪食蛇!这次是全然在osx下开发的。基本的思路是这种我建立了一个Snake类,当中有两个构造函数一个是用于存放蛇身体sprite的图片和Snake的X坐标和Y坐标。另外一个是用于存放蛇头的sprite图片和Snake的X坐标和Y坐标dir方向,还有snake的生命。....
分类:
移动开发 时间:
2014-06-20 20:15:55
阅读次数:
393
题目:实现ComplexLinNode* Clone(ComplexLinNode*pHead),复制一个复杂链表。分析:必须先pnext后才能进行m_AnyNodestruct ComplexLinNode{ char m_data; ComplexLinNode* m_NextNod...
分类:
其他好文 时间:
2014-06-20 20:01:33
阅读次数:
256
这是一个Oracle的列转行函数:LISTAGG()先看示例代码:with temp as( select 'China' nation ,'Guangzhou' city from dual union all select 'China' nation ,'Shanghai' city fr.....
分类:
数据库 时间:
2014-06-20 19:13:41
阅读次数:
224
oracle数据中删除数据时提示“记录被另一个用户锁住” 解决方法:1、查看数据库锁,诊断锁的来源及类型:select object_id,session_id,locked_mode from v$locked_object;或者用以下命令: select b.owner,b.object_nam...
分类:
数据库 时间:
2014-06-20 18:57:35
阅读次数:
199