码迷,mamicode.com
首页 >  
搜索关键字:returns    ( 2350个结果
[LeetCode] Concatenated Words 连接单词
Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word ...
分类:其他好文   时间:2017-01-06 01:18:26    阅读次数:206
Collections.unmodifiableMap
1. Collections.unmodifiableMap 是什么? Java的官方解释: Returns an unmodifiable view of the specified map. This method allows modules to provide users with "re ...
分类:其他好文   时间:2017-01-05 21:11:22    阅读次数:222
28. Implement strStr()
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 1 2 brute force ...
分类:其他好文   时间:2017-01-05 18:38:41    阅读次数:187
substring的用法
示例: ...
分类:其他好文   时间:2017-01-03 16:50:40    阅读次数:1358
对字符串进行加密解密
create view v_rand as select c=unicode(cast(round(rand()*255,0) as tinyint)) Go create function f_jmstr ( @str varchar(8000), @type bit ) returns varc ...
分类:其他好文   时间:2017-01-03 15:32:06    阅读次数:213
无序字符比较函数
Go --创建函数(第一版) create function get_orderstr(@str varchar(8000)) returns varchar(8000) as begin set @str=rtrim(@str) declare @tb table(s varchar(1),a i... ...
分类:其他好文   时间:2017-01-03 15:30:28    阅读次数:245
生成两个时间之间的所有日期
--改写liangCK的部分代码为函数 --创建函数 create function generateTime ( @begin_date datetime, @end_date datetime ) returns @t table(date datetime) as begin with mac... ...
分类:其他好文   时间:2017-01-03 15:21:34    阅读次数:179
根据年月得到当月的天数
Go --创建函数 create function [dbo].[get_days] ( @yearmonth varchar(6) --参数格式: ) returns int as begin return (datediff(d,@yearmonth+'01',dateadd(mm,1,@yea ...
分类:其他好文   时间:2017-01-03 15:21:04    阅读次数:214
过滤掉字符串中重复的字符
Go --创建函数(此函数来自csdn,作者不详) create function [dbo].[m_distinctStr](@s varchar(max)) returns varchar(100) as begin if @s is null return(null) declare @new ...
分类:其他好文   时间:2017-01-03 15:18:51    阅读次数:221
根据年得到所有星期日的日期
Go --创建函数 create function GetWeekDays(@year int) returns @t table (星期天varchar(20)) as begin insert @t select substring(convert(varchar,dateadd(day,x,c... ...
分类:其他好文   时间:2017-01-03 15:12:03    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!