1.linux中允许数据库远程连接的命令是:
①:update mysql.user set Host='%' where Host='::1';
②:update mysql.user set password=password('1234');
③:flush privileges;
2.连接不到Linux的数据库的修改方法
①:chmod ...
分类:
数据库 时间:
2015-05-11 22:02:31
阅读次数:
149
select(); $result = M("admin")->where("id>2")->select(); $result = M("admin")->where("id>2")->order("id desc")->limit("0,5")->field("id,username...
分类:
Web程序 时间:
2015-05-11 21:48:21
阅读次数:
132
其实在Mysql中,多表联合update不是什么难事。 语法: UPDATE table_references SET col_name1=expr1 [, col_name2=expr2 ...] [WHERE where_definition] 示例: UPDATE table1, table2...
分类:
数据库 时间:
2015-05-11 21:44:03
阅读次数:
150
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate...
分类:
编程语言 时间:
2015-05-11 21:39:39
阅读次数:
169
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb...
分类:
编程语言 时间:
2015-05-11 21:38:44
阅读次数:
118
1.用一条SQL语句 查询出每门课都大于80分的学生姓名 name kecheng fenshu 张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90A: select distinct name from table where nam...
分类:
数据库 时间:
2015-05-11 21:34:13
阅读次数:
212
#HTML5 Drag and Drop - Make an Element Draggable ``` ``` - What to Drag - ondragstart and setData() - Where to Drop - ondragover > By default, data/elements cannot be dropped in other elements. To ...
分类:
Web程序 时间:
2015-05-11 20:13:53
阅读次数:
191
一、数据读取在之前的课程中,我们已经大量使用了数据读取的功能,比如 select()方法。结合各种连贯方法可以实现数据读取的不同要求,支持连贯的方法有:1.where,查询或更新条件;2.table,要操作的数据表名称;3.alias,数据表别名;4.field,查询字段;5.order,结果排序;...
分类:
其他好文 时间:
2015-05-11 19:40:03
阅读次数:
138
建立索引常用的规则如下: 1、表的主键、外键必须有索引; 2、数据量超过300的表应该有索引;3、经常与其他表进行连接的表,在连接字段上应该建立索引; 4、经常出现在Where子句中的字段,特别是大表的字段,应该建立索引;5、索引应该建在选择性高的字段上;6、索引应该建在小字段上,对于大的文本字段甚...
分类:
数据库 时间:
2015-05-11 19:36:06
阅读次数:
133
shmmax内核参数定义是系统允许的单个共享内存段的最大值
现在模拟设置shmmax很小:
[root@localhost kernel]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
SQL> select * from v$version where rownum=1...
分类:
其他好文 时间:
2015-05-11 17:53:35
阅读次数:
149