码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
[ORACLE]管理方面的脚本收集
-----------------------------Cryking原创------------------------------ -----------------------转载请注明出处,谢谢!------------------------  1.查询AWR相关的视图名称 SELECT table_name FROM dba_tables t WHERE table_...
分类:数据库   时间:2014-06-05 09:07:51    阅读次数:427
php Laravel 框架之分页
今天学习了Laravel的分页功能,感觉它这个非常的好用. 下面拿出来和大家分享一下. 首先第一步,我们需要获取到查询的结果. 方法大家应该各有所异,无非包括各种条件,排序.但是最后我们必须通过 paginate(PAGESIZE)来获取选定的结果. 例如:我使用Eloquent 来获取数据. $ret = User::where('age','gt',25)->orderBy('se...
分类:Web程序   时间:2014-06-04 21:39:59    阅读次数:728
mysql常见问题
1. mysql忘记密码 vim /etc/my.conf 文件在mysqld下添加skip-grant-tables,表示mysql在登录的时候不检查权限。登录mysql。直接运行mysql> use mysql; > update user set Password=password('root') where User='root' > flush privileges; > qu...
分类:数据库   时间:2014-06-03 02:24:16    阅读次数:283
LeetCode: Word Search [079]
【题目】 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be use...
分类:其他好文   时间:2014-06-03 01:07:58    阅读次数:329
【12c】root container 和 pdb 的一些区别
e Where ? root pdb 备注 Control files and redo log files Y   belongs to the CDB and not to a specific container...
分类:数据库   时间:2014-06-01 13:06:25    阅读次数:332
Mysql存储过程知识,案例
Mysql存储过程知识,案例:create procedure delete_setting(in p_settingid integer)begin delete from setting where settingid=p_settingid;endselect `name` from mysq...
分类:数据库   时间:2014-06-01 12:19:33    阅读次数:569
LeetCode: Largest Rectangle in Histogram [084]
【题目】 Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3]. The...
分类:其他好文   时间:2014-06-01 10:46:29    阅读次数:242
LeetCode: Gray Code [089]
【题目】 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0. ...
分类:其他好文   时间:2014-06-01 09:16:29    阅读次数:242
查询一个月最后一天的总用户数,数据库中没有保存最好一天的数据,就查询本月数据库已存有的最后一天的数据
select total_user from a_user_no where date_time=(select max(date_time) from a_user_no  where  ‘2013-05’+ "'=to_char(date_time,‘yyyy-mm’));   通过max 函数来去5月份出现最大日期的数据...
分类:数据库   时间:2014-06-01 08:53:00    阅读次数:312
Java中检索联系人中有没有今天生日的
查询crm_linkman表中,birthday(数据库中为date类型)字段中,月日为5-31的记录(主要用于检索今天有没有联系人生日) SELECT * FROM crm_linkman WHERE MONTH(birthday) = 5 and DAYOFMONTH(birthday) = 31...
分类:编程语言   时间:2014-06-01 08:52:21    阅读次数:355
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!