码迷,mamicode.com
首页 >  
搜索关键字:primary    ( 4545个结果
Hibernate Many-to-Many Mappings
创建表: create table EMPLOYEE ( id INT NOT NULL auto_increment, first_name VARCHAR(20) default NULL, last_name VARCHAR(20) default NULL, salary INT default NULL, PRIMARY KEY (id) );...
分类:移动开发   时间:2014-09-15 16:01:19    阅读次数:321
select count(*)和select count(1)的区别
一般情况下,Select Count (*)和Select Count(1)两着返回结果是一样的假如表沒有主键(Primary key),那么count(1)比count(*)快,如果有主键的話,那主键作为count的条件时候count(主键)最快如果你的表只有一个字段的话那count(*)就是最快...
分类:其他好文   时间:2014-09-15 09:59:28    阅读次数:179
mysql left join,right join,inner join简单实例
-- 准备工作drop table if exists Emp;create table if not exists Emp( uid int primary key, sid int);insert into Emp values(1,1);insert into Emp values(2,2);...
分类:数据库   时间:2014-09-14 12:42:07    阅读次数:180
xfs_fsr的基本用法
/dev/sda1:notfsysdev,dir,orregfile,ignoring引出xfs_fsr的用法场景说明:没有安装xfsdump,然后准备使用命令修复文件系统格式是xfs的文件系统:步骤1:xfs_fsr/dev/sda1但是出现如下的错误:/dev/sda1:notfsysdev,dir,orregfile,ignoring使用parted工具查看到的分区格式:Num..
分类:其他好文   时间:2014-09-14 11:26:47    阅读次数:874
oracle实现主键自增
由于ORACLE设置主键是不会自动增加的,所以必须用 序列 和 触发器 来完成主键的递增 1、建立数据表 create table Test_Increase( userid number(10) primary key, /*建立主键*/ username varchar2(20) ); 2、创建...
分类:数据库   时间:2014-09-13 10:35:14    阅读次数:266
LA 3236 That Nice Euler Circuit(欧拉定理)
That Nice Euler Circuit Timelimit:3.000 seconds Little Joey invented a scrabble machine that he called Euler, after the great mathematician. In his primary school Joey heard about the nice s...
分类:其他好文   时间:2014-09-12 19:13:34    阅读次数:277
sqlserver sysobjects xtype
xtype 代表类型C = CHECK 约束D = 默认值或 DEFAULT 约束F = FOREIGN KEY 约束L = 日志FN = 标量函数IF = 内嵌表函数P = 存储过程PK = PRIMARY KEY 约束(类型是 K)RF = 复制筛选存储过程S = 系统表TF = 表函数TR =...
分类:数据库   时间:2014-09-12 09:59:33    阅读次数:190
mysql 行转列
准备工作:create table tx( id int primary key, c1 char(2), c2 char(2), c3 int ); insert into tx values(1 ,'A1','B1',9), (2 ,'A2','B1',7), (3 ,'A3','B1',...
分类:数据库   时间:2014-09-11 18:43:12    阅读次数:315
Sql--IDENTITY()自动增长列
CREATE TABLE Tables( [SID] [numeric](12, 0) IDENTITY(1,1) NOT NULL, [UpdateTime] [datetime] NOT NULL, CONSTRAINT [PK_Tables] PRIMARY KEY (SID ...
分类:数据库   时间:2014-09-11 17:02:32    阅读次数:206
[ACM] hdu 4403 A very hard Aoshu problem (DFS暴搜数字)
A very hard Aoshu problem Problem Description Aoshu is very popular among primary school students. It is mathematics, but much harder than ordinary mathematics for primary school students. T...
分类:其他好文   时间:2014-09-11 15:23:22    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!