前段时间遇到一个存储过程,参数之一是一个字符串,实际作用是在存超过中是作为一个查询条件处理的在存储过程中,把字符串拆分成一个临时表之后作key值,作为一个查询条件,逻辑实现上有两种处理方式insert into #tselect key from split_function('传递进来的字符串',...
分类:
数据库 时间:
2015-11-29 14:53:38
阅读次数:
290
Given an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate number must exist. Assume...
分类:
其他好文 时间:
2015-11-29 00:57:12
阅读次数:
191
翻译给定一个已排序的数组和一个目标值,如果这个目标值能够在数组中找到则返回索引。如果不能,返回它应该被插入的位置的索引。你可以假设数组中没有重复项。以下是一些示例。原文Given a sorted array and a target value, return the index if the target is found. If not, return the index where it w...
分类:
其他好文 时间:
2015-11-28 23:20:49
阅读次数:
289
函数的分类Oracle 提供一系列用于执行特定操作的函数SQL 函数带有一个或多个参数并返回一个值以下是SQL函数的分类:单行函数对于从表中查询的每一行只返回一个值可以出现在 SELECT 子句中和 WHERE 子句中单行函数可以大致划分为: 1.日期函数 2.数字函数 3.字符函数 4.转...
分类:
数据库 时间:
2015-11-28 18:14:44
阅读次数:
251
题意:给出一个数组,数组的每一个元素都是不一样的,求出对于3个数组下标 i,?j,?k such that i aj?>?ak where ax is the value at position x. 的个数明显数组的值太大了先离散化,然后就是简单的树状数组了对于每一个i,只要统计i前面的数中比.....
分类:
编程语言 时间:
2015-11-28 15:06:28
阅读次数:
188
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2015-11-28 12:02:56
阅读次数:
124
1、初始化root密码进入mysql数据库1mysql>update user set password=PASSWORD(‘123456’) where User='root';2、允许mysql远程访问,可以使用以下三种方式:a、改表。1234mysql -u root –pmysql>use ...
分类:
数据库 时间:
2015-11-28 10:18:31
阅读次数:
199
IF EXISTS(SELECT TOP 1 * FROM sys.objects WHERE name=N'uF_DateFormat' AND [type]='FN') DROP FUNCTION uF_DateFormatGOSET ANSI_NULLS ONGOSET QUOTED_I...
分类:
数据库 时间:
2015-11-27 19:58:09
阅读次数:
290
Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-...
分类:
其他好文 时间:
2015-11-27 17:25:35
阅读次数:
158
语法:CREATE [索引类型] INDEX 索引名称ON 表名(列名)WITH FILLFACTOR = 填充因子值0~100GO/*实例*/USE 库名GOIF EXISTS(SELECT * FROM SYSINDEXES WHERE NAME='IX_TEST_TNAME')--检测是否已经...
分类:
数据库 时间:
2015-11-27 17:24:43
阅读次数:
156