create function [dbo].[fun_getbh](@char nchar(2)) returns int as begin return( case when unicode(@char) between 19968 and 40869 then( select top 1 id ...
分类:
数据库 时间:
2018-01-17 12:31:27
阅读次数:
191
/* 汉字转拼音首字母 */ create function fun_getPY(@str nvarchar(4000)) returns nvarchar(4000) as begin declare @word nchar(1),@PY nvarchar(4000) set @PY='' whi ...
分类:
数据库 时间:
2018-01-17 12:26:36
阅读次数:
164
★ 加密存储过程 ★: IF EXISTS (SELECT name FROM sysobjects WHERE name = 'encrypt_this' AND type = 'P') DROP PROCEDURE encrypt_this GO USE pubs GO CREATE PROCE ...
分类:
数据库 时间:
2018-01-17 01:08:24
阅读次数:
195
DELIMITER $$CREATE DEFINER = CURRENT_USER FUNCTION `getDistance`(`lon1` float,`lat1` float,`lon2` float,`lat2` float) RETURNS doublebegin declare d do ...
分类:
数据库 时间:
2018-01-17 00:19:11
阅读次数:
351
http://blog.csdn.net/Jerr__y/article/details/70471066 欢迎转载,但请务必注明原文出处及作者信息。 @author: huangyongye @creat_date: 2017-04-19 前言 本例子主要介绍如何使用 TensorFlow 来一步 ...
分类:
其他好文 时间:
2018-01-13 21:02:22
阅读次数:
628
Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". ...
分类:
其他好文 时间:
2018-01-13 20:58:16
阅读次数:
152
在工作中遇到对接java接口,涉及到java加密或签名问题,.net无法实。就将java代码编辑为dll给.net调用 注:这里只做简单java代码处理,不涉及到复杂的java包 java文件处理: 第一步:简单java代码 第二步:java代码编译为class文件 1:在开始菜单,搜索框中输入“c ...
分类:
编程语言 时间:
2018-01-10 20:25:40
阅读次数:
1201
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:
其他好文 时间:
2018-01-08 11:02:53
阅读次数:
165
CREATE FUNCTION "public"."NewProc"(IN "p_date" varchar, OUT "out_vv" int4) RETURNS "pg_catalog"."int4" AS $BODY$declare v_sqlcode INTEGER; v_date date ...
分类:
数据库 时间:
2018-01-05 16:07:07
阅读次数:
345
1,执行如下代码即可实现递归查询:delimiter // CREATE FUNCTION `getParLst`(rootId INT)RETURNS varchar(1000) BEGIN DECLARE sTemp VARCHAR(1000); DECLARE sTempChd VARCHAR ...
分类:
数据库 时间:
2018-01-05 15:47:41
阅读次数:
170