use mastergoselect * from sys.servers if not exists (select * from master.sys.servers where name='CGserver' )begin--创建链接服务器exec sp_Addlinkedserver...
分类:
其他好文 时间:
2015-06-03 13:14:10
阅读次数:
105
看到where语句中有条件:where 1=1 和 1=2或11用途: 1=1:是为了添加条件时使用and并列其他条件时使用的(动态连接后续条件) 比如: String sql = "select * from emp where 1=1 "; if(username...
分类:
数据库 时间:
2015-06-03 13:10:24
阅读次数:
161
sudo docker run -it -v /usr/lib:/usr/lib/dbdata --name dbcontainer-192.168.1.184 ubuntu:14.04
sudo docker run -it --volumes-from dbcontainer-192.168.1.184 --name
mastercontainer-192.168.1.180 ubunt...
分类:
其他好文 时间:
2015-06-03 12:05:10
阅读次数:
171
1、定义:
The Strategy Pattern defines a family of algorithms,encapsulates each one,and makes them interchangeable. Strategy lets the algorithm vary independently from
clients that use it.
定义了一系列的算法...
分类:
移动开发 时间:
2015-06-03 12:02:14
阅读次数:
138
We will learn how to call Rest Api in SharePoint Online, here is the requirment:
There is a customer list named "Customers", we will output the title of all items in the list.
Introduce Rest Api:
...
以下sql语句为接触到的,在工作中较为实用的总结。我会不断更新。2015/06/02 打开某个开关才返回相应字段的值, 否则只是返回空值。select "" as field_name, other_filed from table_name limit 1;
分类:
数据库 时间:
2015-06-03 11:26:42
阅读次数:
119
Reverse Linked List IITotal Accepted:40420Total Submissions:154762My SubmissionsQuestionSolutionReverse a linked list from positionmton. Do it in-plac...
分类:
其他好文 时间:
2015-06-03 11:25:24
阅读次数:
121
SELECT DISTINCT vend_id -> FROM Products;+---------+| vend_id |+---------+| BRS01 || DLL01 || FNG01 |+---------+SELECT DISTINCT vend_id, prod...
分类:
数据库 时间:
2015-06-03 11:18:33
阅读次数:
142
有一种解决方法(ps:from ljq): 把数据库的值先全部遍历出来,然后再对遍历出来值的$key进行一个判断,example:foreach ($results[0] as $key => $val) { $results[0][$key] = isset($_POST[$key]) && !e...
分类:
数据库 时间:
2015-06-03 11:13:46
阅读次数:
150
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2015-06-03 10:03:29
阅读次数:
108