delete from wx_message where created_at
定时器:
{CSDN:CODE:671885}
定时任务:
{CSDN:CODE:671886}...
分类:
其他好文 时间:
2015-05-21 14:19:01
阅读次数:
144
最近几天怪事儿出奇的多,同一个工单、同一个产品,在A线可以正常生产,但是在H线死活都无法生产,系统直接提示TimeOut,监控发现有一条SQL语句执行缓慢,Copy出来仔细查看,很简单的一条语句,如下:SELECT TOP 1 LOT_ID FROM QS_WIP(NOLOCK) WHERE STA...
分类:
数据库 时间:
2015-05-21 12:09:29
阅读次数:
151
内连接:就是我们平时的表连接,显示id相匹配的数据
SELECT * FROM a,b WHERE a.aid=b.bid仅仅取出的是匹配的数据。
外连接:分为左连接和右连接
左连接:首先取出左表(a表)的数据,然后加上与右表(b表)匹配的数据,(a表为驱动表,b表为匹配表)
SELECT * FROM a LEFT JOIN b ON a.aid=b.bid;
等同于
...
分类:
数据库 时间:
2015-05-21 10:53:06
阅读次数:
142
While automation, you may come to situations where you need to need to download a file on clicking a link. This generally involves a lot of User Inter...
分类:
Web程序 时间:
2015-05-21 10:34:38
阅读次数:
105
Tales of seafaringMemory limit: 128 MBYoung Bytensson loves to hang out in the port tavern, where he often listens to the sea dogs telling their tales...
分类:
其他好文 时间:
2015-05-21 10:27:09
阅读次数:
251
前几天发现系统变得很慢,在Profiler里面发现有的SQL执行了几十秒才返回结果,当时的SQL如下:可以看得出来,在652行用了子查询,恰巧目标表(QS_WIP)中的记录数为100000000+,通过如下SQL可以得到:SELECT ROWS FROM SYSINDEXES WHERE ID=OB...
分类:
数据库 时间:
2015-05-21 10:24:25
阅读次数:
286
很多人不知道SQL语句在SQL SERVER中是如何执行的,他们担心自己所写的SQL语句会被SQL SERVER误解。比如:select * from table1 where name='zhangsan' and tID > 10000和执行:select * from table1 where...
分类:
数据库 时间:
2015-05-21 08:59:26
阅读次数:
184
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.解题思路:用一个有序数组,创建一个平衡二叉查找树。为确保平衡,需要满足两子树的高度差不大于1,可以通过设置...
分类:
其他好文 时间:
2015-05-21 06:37:05
阅读次数:
123
摘要:
Mybatis动态SQL语句可帮助我们根据需要动态拼接SQL语句。主要在配置文件中使用 标签来实现。...
分类:
数据库 时间:
2015-05-21 00:10:32
阅读次数:
237
https://www.atlassian.com/git/tutorials/comparing-workflowsComparing WorkflowsThe array of possible workflows can make it hard to know where to begin ...
分类:
其他好文 时间:
2015-05-20 23:44:55
阅读次数:
160