$this->Mymodel->find('all', array('conditions' => array('Mymodel.name' => array($authors ,$articles)),'order'=>'Mymodel.id DESC'));
分类:
Web程序 时间:
2014-07-03 21:22:56
阅读次数:
235
word-break:break-all和word-wrap:break-word都是能使其容器如DIV的内容自动换行。它们的区别就在于:1,word-break:break-all 例如div宽200px,它的内容就会到200px自动换行,如果该行末端有个英文单词很长(congratulation...
分类:
其他好文 时间:
2014-07-03 20:40:13
阅读次数:
165
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-07-03 18:57:04
阅读次数:
193
row_number() OVER (PARTITION BY COL1 ORDER BY COL2)
--表示根据COL1分组,在分组内部根据 COL2排序,而此函数返回的值就表示每组内部排序后的顺序编号(组内连续的唯一的)
例子一: create table student (id int ,classes int ,score int);
insert into student val...
分类:
其他好文 时间:
2014-07-03 18:33:50
阅读次数:
213
今天在使用ci框架,需要向mysql数据表插入数据,其中的一个字段包含汉字、字母,可是用传统的使用sql语句:insert into XXX这种方式,无论如何都插入不成功,最后我换了另一种方式:
$data = array(
'fault_id' => $fault_id
);
return $this->db->insert('faulthandle', $data);这种方式就可以!...
分类:
数据库 时间:
2014-07-03 18:32:34
阅读次数:
241
搜索树数据结构支持许多动态集合操作,如search(查找)、minmum(最小元素)、maxmum(最大元素)、predecessor(前驱)、successor(后继)、insert(插入)、delete(删除),这些都是基本操作,可以使用一颗搜索树当做一个字典或者一个优先队列。
12.1、什么事二叉搜索树
二叉搜索树是以一棵二叉树来组织的,可以用一个链表数据结构来表示,也叫二叉...
分类:
其他好文 时间:
2014-07-03 18:02:21
阅读次数:
231
??
方法一:
[root@vmrac1 ~]# su - grid
[grid@vmrac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 3 09:36:27 2014
Copyright (c) 1982, 2011, Oracle. All rights res...
分类:
数据库 时间:
2014-07-03 17:24:25
阅读次数:
238
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
分类:
其他好文 时间:
2014-07-03 13:02:23
阅读次数:
200
You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati...
分类:
其他好文 时间:
2014-07-03 12:32:26
阅读次数:
133
MySQL 服务正在启动 .MySQL 服务无法启动。系统出错。发生系统错误 1067。进程意外终止。检查了一个晚上才发现是---配置问题#Path to installation directory. All paths are usually resolved relative to this....
分类:
数据库 时间:
2014-07-03 12:14:10
阅读次数:
808