返回查询影响的记录数
$res = $this->db->get_where('wx_life',array('id'=>$id));
$num = $res->num_rows();...
分类:
数据库 时间:
2014-06-09 23:10:50
阅读次数:
259
用了很久的LocalDB了,不用装那么多的SQL组件感觉很不错,前不久调试代码碰到一个问题,VS突然就连接不上LocalDB了,琢磨了一下午,其实有个很简单的方法。第一步,先找到SQL
Local DB的版本,我用的是VS2013,所以是V11.0,或者可以在cmd里打sqllocaldbvers....
分类:
数据库 时间:
2014-06-09 18:37:51
阅读次数:
422
--MySQL权限说明----------------------2014/06/09一.权限表mysql数据库中的3个权限表:user、db、host权限表的存取过程是:1)先从user表中的host、user、password这3个字段中判断连接的IP、用户名、密码是否存在表中,存在则通过身份验...
分类:
数据库 时间:
2014-06-09 18:21:39
阅读次数:
288
1、新建txt文件,更改后缀名为udl2、右击,以OLE DB Core Services
方式打开3、填写相应的服务器名、登陆方式、数据源4、以txt方式打开文件,连接字符串已经生成了,怎么样,给力吧[oledb]; Everything after
this line is an OLE DB ...
分类:
数据库 时间:
2014-06-09 14:06:07
阅读次数:
476
DOM level 3:将XML文档封装成对象。 -->
分类:
其他好文 时间:
2014-06-09 00:45:17
阅读次数:
198
题目
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
G...
分类:
其他好文 时间:
2014-06-08 17:29:07
阅读次数:
315
题目
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ \...
分类:
其他好文 时间:
2014-06-08 16:38:02
阅读次数:
194
1. 创建目录
SQL> create directory dump_file as ‘/db/backup’;
2. 目录赋权限
SQL> grant read,write on directorydump_file to bam;
查看目录
SQL> select * from dba_directories;
3. 备份
SQL>expdp user/pwd directo...
分类:
数据库 时间:
2014-06-08 10:07:15
阅读次数:
333
题目
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20...
分类:
其他好文 时间:
2014-06-08 09:23:34
阅读次数:
230
/* 参数说明: pi_program_name 程序名称 pi_directory
写入日志文件所在的目录 pi_file 日志文件名称,必须存在 pi_log_level 日记级别,INFO、WARN、FATAL pi_write_to
...
分类:
数据库 时间:
2014-06-07 22:09:19
阅读次数:
368