简单CRUD操作 1 public function show() { 2 $m=M('User'); 3 4 // $arr=$m->find(2); //查找id=2的数据,find只能返回一条数据 5 //2.SELECT * FROM `tp...
分类:
Web程序 时间:
2015-05-15 09:00:27
阅读次数:
126
There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to...
分类:
其他好文 时间:
2015-05-15 01:02:35
阅读次数:
157
Free Angular JS Themes and Templateshttp://startangular.com/10+ Best Responsive HTML5 AngularJS Templates in 2014 http://www.responsivemiracle.com/col...
分类:
其他好文 时间:
2015-05-14 23:48:10
阅读次数:
194
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。根据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:
移动开发 时间:
2015-05-14 23:41:55
阅读次数:
218
罗马数字转为阿拉伯数字 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999.
分类:
其他好文 时间:
2015-05-14 20:23:51
阅读次数:
143
记一条很长的sql,为了方便阅读,我已经加了段落: SELECT * FROM ( (SELECT 1 AS acheck, s1.id, s1.plan_name, s1.cost_mode, s1.sta_type, s1.cost_type, s1.cost_period_time, s1.....
分类:
数据库 时间:
2015-05-14 20:12:59
阅读次数:
195
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 22 in XML document from class path resource [applicationContext.xml] is invalid; nested except...
分类:
其他好文 时间:
2015-05-14 18:55:34
阅读次数:
181
在olap中,往往能看到性能很差的语句是update语句,跑半天都跑不过去,虽然语句可以千变万化,但是优化起来还是有规可循的。
--测试表:
drop table t1;
drop table t2;
create table t1 as select * from dba_objects;
create table t2 as select * from dba_objects;
--原始...
分类:
其他好文 时间:
2015-05-14 18:43:06
阅读次数:
119
然后调用方法varqrcode=newQRCode(elem,{width:96,//设置宽高height:96});qrcode.makeCode("http://www.78oa.com");代码: 以下代码可以通过外链/*from tccdn minify at 2014-6-4 14:59....
分类:
Web程序 时间:
2015-05-14 18:31:50
阅读次数:
136
-实现删除学生信息时把该学生的成绩记录全部清空--判断触发器是否存在if exists(select * from sysobjects where name = 'delete_student')drop trigger delete_studentgocreate trigger delete_...
分类:
其他好文 时间:
2015-05-14 18:10:17
阅读次数:
105