码迷,mamicode.com
首页 >  
搜索关键字:primary    ( 4545个结果
cdh5 hadoop redhat 本地仓库配置
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
ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'
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
mysql常用函数
时间戳转换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
SQL 语句大汇总
按照顺序来 //创建数据库 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
oracle中的自动增长
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 @IdClass @EmbeddedID相关注解
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
Primary Key and Unique Key difference in SQL Server
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语句
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
sql练习
--建表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
mysql row number的实现
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!