cdh5 hadoop redhat 本地仓库配置cdh5 在网站上的站点位置:http://archive-primary.cloudera.com/cdh5/redhat/6/x86_64/cdh/在RHEL6上配置指向这个repo非常简单,只要把:http://archive-primary.cloudera.com/cdh5/redhat/6/x86_64/cdh/cloudera-cdh...
分类:
其他好文 时间:
2014-12-19 15:53:27
阅读次数:
159
use mysqlmysql> select host, user from user;将相应用户数据表中的host字段改成'%';update user set host='%' where user='root';ERROR 1062 (23000): Duplicate entry '%-ro...
分类:
数据库 时间:
2014-12-19 15:40:19
阅读次数:
268
时间戳转换datetime转换为时间戳:UNIX_TIMESTAMP()时间戳转换为datetime:FROM_UNIXTIME()mysql> create table testtime(id int auto_increment not null,timestr int,PRIMARY KEY(...
分类:
数据库 时间:
2014-12-18 23:36:14
阅读次数:
319
按照顺序来 //创建数据库 create?database?wenda?charset?utf8; //删除数据库 drop?database?wenda; //创建表 create?table?hd_ask(asid?int?unsigned?primary?key?auto_increment,answer?int?not...
分类:
数据库 时间:
2014-12-18 22:29:25
阅读次数:
240
create table test(id int not null primary key,name varchar2(20),sex int);create sequence t ->创建squence,命名为tminvalue 1 ->最小值maxvalue 100000 ->最大...
分类:
数据库 时间:
2014-12-18 20:23:36
阅读次数:
249
Hibernate Annotations
Mapping composite primary keys and foreign keys to composite primary keys:
http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_single/#d0e2177
引用Composit...
分类:
Web程序 时间:
2014-12-17 16:35:02
阅读次数:
311
posted from http://www.sqlservergeeks.com/primary-key-and-unique-key-difference-in-sql-server/Primary and Unique Key both enforce uniqueness of column...
分类:
数据库 时间:
2014-12-17 16:03:52
阅读次数:
181
mysql优化sql语句常见误区 www.2cto.com 误区1:count(1)和count(primary_key) 优于 count(*) 很多人为了统计记录条数,就使用 count(1) 和 count(primary_key) 而不是 count(*) ,他们认为这样性能更好, 其实.....
分类:
数据库 时间:
2014-12-17 14:27:49
阅读次数:
331
--建表create table Regions (Region_id int not null primary key ,Region_name varchar(25) )go--国籍create table Countries(Country_id int not null primary ke...
分类:
数据库 时间:
2014-12-17 09:46:11
阅读次数:
262
CREATE TABLE `test_id` (`id` int(11) NOT NULL DEFAULT 0 ,`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'XX' ,PRIMARY K.....
分类:
数据库 时间:
2014-12-16 13:12:06
阅读次数:
189