码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
mongoid模糊查询
How to use thelikequery with Mongoid . Basically I wanted something like the familiar SQL query:SELECT * FROM Apps WHERE name LIKE ‘%aaa%’I couldn’t f...
分类:其他好文   时间:2014-06-26 23:58:29    阅读次数:742
快速排查SQL服务器阻塞语句
SELECT*FROM sys.sysprocesses where spid>50 and blocked>0 --可以查看阻塞 SELECT SPID=p.spid, DBName =convert(CHAR(20),d.name), ProgramName =progra...
分类:数据库   时间:2014-06-26 23:44:59    阅读次数:244
转移帝国cms数据
第一步:update `zh_ecms_company` set classid=47 WHERE zone in(330102,330103,330104,330105,330106,330108,330109,330110,330122,330127,330182,330183,330185)第...
分类:其他好文   时间:2014-06-26 22:53:09    阅读次数:224
【转】 #1451 - Cannot delete or update a parent row: a foreign key constraint fails 问题的解决办法
转载地址:http://blog.csdn.net/donglynn/article/details/17056099错误SQL 查询:DELETE FROM `zmax_lang` WHERE CONVERT( `zmax_lang`.`lang` USING utf8 ) = 'fr' ...
分类:其他好文   时间:2014-06-26 21:31:40    阅读次数:204
[LeetCode] Valid Sudoku
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:其他好文   时间:2014-06-26 19:35:09    阅读次数:266
OCP-1Z0-051-题目解析-第3题
3. You need to extract details of those products in the SALES table where the PROD_ID columncontains the string '_D123'.Which WHERE clause could be u....
分类:其他好文   时间:2014-06-26 17:40:00    阅读次数:159
设置MySQL root的密码
在my.ini的[mysqld]字段加入:skip-grant-tables重启mysql服务,这时的mysql不需要密码即可登录数据库然后进入mysql123mysql>use mysql;mysql>update user set password=password('新密码') WHERE U...
分类:数据库   时间:2014-06-26 15:56:38    阅读次数:224
LeetCode: Gas Station [134]
【题目】 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an ...
分类:其他好文   时间:2014-06-26 13:27:05    阅读次数:231
mssql游标demo
declare @billIds varchar(400) declare @billId varchar(40) DECLARE c1 CURSOR FOR select top 5 SaleNo from Pos_Master where SaleDate>@dd -- 一次上传5笔 open....
分类:数据库   时间:2014-06-26 12:23:36    阅读次数:264
Error:ORA-00937: 非单组分组函数错误
ORA-00937: 非单组分组函数错误 select count(*), t.user_name from sys_user t, sys_department a, sys_dep_type d where t.dep_id = a.dep_id and a.dep_id = d.dep_id and t.recd_is_del = 0 group by t.u...
分类:其他好文   时间:2014-06-26 08:07:37    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!