码迷,mamicode.com
首页 >  
搜索关键字:from    ( 57817个结果
创建链接服务器
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
oracle 条件:1=1或1=0,动态添加条件
看到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
分布式进阶(十三)Docker Container间实现数据共享
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
Android设计模式--策略模式
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
Rest Api how to retrieve list items from SharePoint Online
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: ...
分类:Windows程序   时间:2015-06-03 11:53:02    阅读次数:210
SQL
以下sql语句为接触到的,在工作中较为实用的总结。我会不断更新。2015/06/02 打开某个开关才返回相应字段的值, 否则只是返回空值。select "" as field_name, other_filed from table_name limit 1;
分类:数据库   时间:2015-06-03 11:26:42    阅读次数:119
leetcode_92题——Reverse Linked List II(链表操作)
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
MySQL.DISTINCT
SELECT DISTINCT vend_id -> FROM Products;+---------+| vend_id |+---------+| BRS01 || DLL01 || FNG01 |+---------+SELECT DISTINCT vend_id, prod...
分类:数据库   时间:2015-06-03 11:18:33    阅读次数:142
当post 的字段很多,post的字段并不完全修改(有的值是前端input的值,有的任保留原来原来数据库的值),
有一种解决方法(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
LeetCode 19: Remove Nth Node From End of List
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!