码迷,mamicode.com
首页 >  
搜索关键字:where case when    ( 36516个结果
用例图解析
用例图所包含的元素如下: 1. 参与者(Actor) 表示与您的应用程序或系统进行交互的用户、组织或外部系统。用一个小人表示。 2. 用例(Use Case) 用例就是外部可见的系统功能,对系统提供的服务进行描述。用椭圆表示。 3. 子系统(Subsystem) 用来展示系统的一部分功能...
分类:其他好文   时间:2014-05-23 07:20:18    阅读次数:229
ORACLE随机查询
1.select * from (select * from tablename order by dbms_random.value) where rownum< N;注:dbms_random是一个可以生成随机数值或者字符串的程序包。value()是最常用的,value()的用法一般有两个种,第...
分类:数据库   时间:2014-05-23 07:12:52    阅读次数:364
SQL注入
昨天做了一张卡,是用于解决SQL注入问题的。现在就把昨天学到和用到的内容总结一下吧:)1. 什么是SQL注入简单的说,SQL注入是一种攻击行为,恶意的向SQL语句中插入某些内容进而达到某些不好的目的。举个例子吧,就是:statement = "SELECT * FROM users WHERE na...
分类:数据库   时间:2014-05-23 06:43:48    阅读次数:418
存储过程 、函数和事物
创建存储过程:1 delimiter //2 create procedure printname (id int,out name char(50) )3 begin4 select user into name from user where id=id;5 end6 //7 delimiter...
分类:其他好文   时间:2014-05-23 06:11:51    阅读次数:184
Bash String Manipulation Examples – Length, Substring, Find and Replace--reference
In bash shell, when you use a dollar sign followed by a variable name, shell expands the variable with its value. This feature of shell is called para...
分类:其他好文   时间:2014-05-21 18:32:32    阅读次数:332
LeetCode: Combination Sum II [039]
【题目】 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combination. Note: All numbers (including target) will be ...
分类:其他好文   时间:2014-05-21 15:55:25    阅读次数:259
从两个TIMESTAMP中获取时间差(秒)
When you subtract two variables of type TIMESTAMP, you get an INTERVAL DAY TO SECOND which includes a number of milliseconds and/or microseconds depending on the platform. If the database is running o...
分类:其他好文   时间:2014-05-21 15:36:38    阅读次数:488
LeetCode: Combination Sum [038]
【题目】 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited number of times. Note: All numbers (including target) w...
分类:其他好文   时间:2014-05-21 15:21:28    阅读次数:292
SQL 检索所有存储过程中是否包含某字符
--将text替换成你要查找的内容 select name from sysobjects o, syscomments s where o.id = s.id and text like '%text%' and o.xtype = 'P' --将text替换成你要查找的内容 SELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFO...
分类:数据库   时间:2014-05-21 14:50:04    阅读次数:373
jdbc查询sybase参数过多问题
公司的数据库一直是sybase,用起来也挺好的,最新客户现场出现一个问题,数据无法传输了,看日志非常简单,一下就定位到了原因。 很简单,参数超过了2000个,因为这个功能是根据主表的主键查询子表,方法用的是where 主表id in (?,?,?,?……)方式,参数问号最多是是2000个,不过这就奇怪了,直接使用sql查询sybase,5000个参数也没问题,看来是jdbc驱动的问题了。...
分类:数据库   时间:2014-05-21 13:39:29    阅读次数:463
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!