码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
PL/SQL中的流控制语句
1、选择控制语句--语法1--IF 条件 THEN 语句;END IF;DECLARE v_Salary NUMBER(8,2);BEGIN SELECT salary INTO v_Salary FROM auths WHERE name='张...
分类:数据库   时间:2015-08-20 12:06:29    阅读次数:208
【JPA】query新对象 需要 构造函数
构造函数 @Query("select g from Note g where id=?1" ) Note findById(Long id); @Query("select new sample.jpa.domain.Note2(c.id,c.title,c.body,d.id)...
分类:其他好文   时间:2015-08-20 01:12:34    阅读次数:241
PL/SQL第四章 where子语句
1 -- 学习where语句 2 3 -- 1、学会where子句中使用常规比较符 4 -- 常规比较操作符:=,(不等于),!=,>=,,'01-1月-82';--不能写成'01-01月-8214 -- 注意to_date转换月份和分钟 不区分大小写 ,分钟使用mi来代替了 ,小时有...
分类:数据库   时间:2015-08-20 01:02:01    阅读次数:224
mysql 查找不存在的id
最近在群里有人问到怎样才能将mysql表中 查找不存在的id(id自增,或者连续都可以) 第一种方法: select bewin_id,a from ( select bewin_id,1 as a from (select bewin_id from c_userinfo_his order by bewin_id asc) t where not exists (select 1 fr...
分类:数据库   时间:2015-08-19 23:46:31    阅读次数:197
[LintCode] Trapping Rain Water II
Trapping Rain Water IIGivennxmnon-negative integers representing an elevation map 2d where the area of each cell is1x1, compute how much water it is a...
分类:移动开发   时间:2015-08-19 23:43:44    阅读次数:500
leetcode 题解代码整理 36-40题
Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. ...
分类:其他好文   时间:2015-08-19 23:43:23    阅读次数:196
PL/SQL第三章 基础查询语句
1 --查询所有列 select * from tab_name|view_name; 2 SELECT * FROM emp; 3 SELECT * FROM (SELECT * FROM emp); 4 --查询特定列 5 SELECT * FROM emp WHERE emp.ename='....
分类:数据库   时间:2015-08-19 23:37:44    阅读次数:247
对表中数据的操作
--向表中添加数据insert into Table_1(电话,成绩) values(2000101,12)--修改表中的数据update Table_1 set 电话=12138 where 电话=2000101--删除表中的数据delete from Table_1 where 电话=12138...
分类:其他好文   时间:2015-08-19 23:25:37    阅读次数:163
帝国cms-tab
[e:loop={"select classname,classpath,classid from phome_enewsclass where bclassid='".$class_r[$GLOBALS[navclassid]][bclassid]."' and showclass...
分类:其他好文   时间:2015-08-19 22:35:29    阅读次数:351
mysql information_schema
SELECT TABLE_NAME,COLUMN_NAME,CHARACTER_MAXIMUM_LENGTH,COLUMN_COMMENT FROM COLUMNS WHERE TABLE_SCHEMA='zhongchao' AND COLUMN_NAME LIKE 'Is%'SELECT * F...
分类:数据库   时间:2015-08-19 20:20:43    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!