如果是使用natraul
join,并且两张表中如果有多个字段是具有相同的名称和数据类型的,那么这些字段都将被oracle自作主张的将他们连接起来。但实际上我们有时候是不需要这样来连接的。我们只需要将他们的多个具有相同的名称和数据类型的字段中挑选一两个。这时候我们就需要用到using
关键字了。下面...
分类:
数据库 时间:
2014-05-05 11:39:19
阅读次数:
346
我想找到D盘里面所有 "*.pst文件,类似 windows 下的磁盘搜索功能,using
System.IO;Directory.GetFiles(@"d:\", "*.pst",
SearchOption.AllDirectories)测试环境为win7 提示说 某某目录没有访问权限。获得文件属...
分类:
其他好文 时间:
2014-05-05 11:37:06
阅读次数:
309
Mysql ON子句和USING子句Mysql
中联接SQL语句中,ON子句的语法格式为:table1.column_name =
table2.column_name。当模式设计对联接表的列采用了相同的命名样式时,就可以使用 USING 语法来简化 ON
语法,格式为:USING(column_n...
分类:
数据库 时间:
2014-05-05 11:31:31
阅读次数:
429
ashx里使用session添加命名空间using
System.Web.SessionState;实现一个接口 IRequiresSessionState
分类:
其他好文 时间:
2014-05-05 11:20:51
阅读次数:
278
Sort a linked list using insertion
sort.思路:使用插入排序来对链表进行排序。只要注意链表的边界问题,其实关键就是交换链表的值,对链表指针是没有什么影响的。接下来说下具体步骤:1.判断head或者head->next是否为空;2.循环遍历,初始条件pCur=he...
分类:
其他好文 时间:
2014-05-04 10:01:57
阅读次数:
242
题目来源:CF 427D Match & Catch
题意:给出2个字符串 求最短的连续的公共字符串 并且该字符串在原串中只出现一次
思路:把2个字符串合并起来求height 后缀数组height的应用
#include
#include
#include
using namespace std;
const int maxn = 100010;
char s[maxn];
int s...
分类:
其他好文 时间:
2014-05-04 09:32:45
阅读次数:
315
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
us...
分类:
其他好文 时间:
2014-05-04 09:30:21
阅读次数:
360
转载请注明出处:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define pi acos(-1....
分类:
其他好文 时间:
2014-05-04 09:25:24
阅读次数:
303
维护两个单调队列,一个存储当前点之前的最大值。
另外一个存储当前点之前的最小值。
若最大值与最小值之间的差大于k,那么就把最大值和最小值中位置靠前的往后移。
#include
#include
#include
#include
#include
using namespace std;
//#define INF ((1<<30)-1)
#define INF 0xfffff
#defin...
分类:
其他好文 时间:
2014-05-04 09:23:04
阅读次数:
372
最近在学scala语言,scala代码如下:
import scala.collection.JavaConversions._
object Solution {
def solution(A: Array[Int]): Int = {
// write your code in Scala 2.10
// using quick sort to so...
分类:
其他好文 时间:
2014-05-04 09:22:37
阅读次数:
341