码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
21. oracle游标循环例子
create or replace procedure sp_addProjectQj( ret out number, flowid in number --流程Id) ascursor c_design is select * from LC_VR_Detail where lc_c...
分类:数据库   时间:2015-11-16 12:09:04    阅读次数:263
Find the Duplicate Number
题目:Given an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate number must exist. Ass...
分类:其他好文   时间:2015-11-16 12:00:52    阅读次数:151
qt QSqlQuery
QT数据库QSqlQuerySQL执行操作QSqlQuery提供了对数据库记录的Select、Insert、Update、Delete操作。SELECT操作:QSqlQuery query;query.exec("SELECT name, salary FROM employee WHERE sal...
分类:数据库   时间:2015-11-16 10:50:10    阅读次数:180
Java 验证用户名、密码
1. 数据库操作2.验证用户2.1. 查询String sql = String.format("select count(*) from user where name='%s' and password='%s';", userName, userPass)...
分类:编程语言   时间:2015-11-15 20:37:28    阅读次数:199
Java [leetcode 35]Search Insert Position
题目描述: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 ...
分类:编程语言   时间:2015-11-15 17:43:57    阅读次数:152
SQL的模糊查询
SQL的模糊查询在进行数据库查询时,有完整查询和模糊查询之分。一般模糊查询语句如下:SELECT 字段 FROM 表 WHERE 某字段 Like 条件其中关于条件,SQL提供了四种匹配模式:1,%:表示任意0个或多个字符。可匹配任意类型和长度的字符,有些情况下若是中文,请使用两个百分号(%%)表示...
分类:数据库   时间:2015-11-15 14:42:19    阅读次数:184
(6)Oracle基础--简单查询
.基本查询语句 SELECT [DISTINCT] column_name1,... | * FROM table_name [WHERE conditions]; P:DISTINCT关键字的作用是过滤掉重复的记录..查询表中所有字段及指定字段 查询表中所有字段 SELECT ...
分类:数据库   时间:2015-11-15 13:28:08    阅读次数:244
黑马视频-多条件搜索
StringBuild sql=new StringBuild("select * from tb where 1=1")if(name!=""){ sql.Append("and name like '%"+name+"%'");}if(sex!=""){ sql.Append("and sex ...
分类:其他好文   时间:2015-11-14 19:15:54    阅读次数:288
inner join跟where查询的区别
就查询结果是没有什么区别的。但是在网上看到一篇是讲到效率问题,暂时不是很理解结果一样,查询效率明显的区别,一个两个集合放在一起,一个是匹配字段查询。比如统计表:姓名 | 工作===================张三 | 写报告------------------------...
分类:其他好文   时间:2015-11-14 17:52:55    阅读次数:294
拼接SQL执行语句时,对单引号的处理
例:declare @SQL nvarchar(1000);declare @str nvarchar(100);set@str='Joe''s NB'; // 打印出来的应该是这样:Joe's NBset @SQL='select * from table where t1=''' +@str ....
分类:数据库   时间:2015-11-14 16:36:53    阅读次数:477
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!