ChinaUnix.net
相关文章推荐:

PRIMARY KEY CLUSTERED

mysql中的语句如下: CREATE TABLE A(name varchar(2) not null,age varchar(2) not null,user varchar(3),CONSTRAINT SYS_PK_A primary key(name,age)); 请问CONSTRAINT SYS_PK_A primary key(name,age)是什么意思呢? 还有SYS_PK_A是什么意思? 如果我要换成oracle下又该如何改呢? 谢谢! [ 本帖最后由 richardzhang 于 2008-4-25 13:59 编辑 ]

by richardzhang - MySQL - 2008-04-25 16:05:26 阅读(3240) 回复(2)

相关讨论

一个表,想把原来的primary key删掉,换成其他的, 如何在不drop表的前提下换主键

by susanita - Sybase - 2006-02-10 07:11:34 阅读(1672) 回复(1)

我做的是实体bean加sessionbean不知道为什么报这个错误! java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: null; CausedByException is: A CMP field that is a member of the primary key can only be set in ejbCreate [EJB 2.0 Spec. 10.3.5].; CausedByException is: A CMP field ...

by siqiabc - Java - 2005-10-21 14:15:31 阅读(1730) 回复(3)

I want to recreate normal table to partition tables for the data is very large. But I can't create or add partition primary key to a partition table. My table have only ONE column as PK and the partition key is defferent from index column. I add PK dierectly to the table but it's not partitioned. I only find so little meterial about it in metalink, and the meterial cant resole the problem. Pls hel...

by pearaep - Oracle - 2003-05-13 15:34:52 阅读(1881) 回复(3)

MYSQL 的 primary key 和unique key 的区别 primary key与Unique key primary key 与Unique key都是唯一性约束。但二者有很大的区别: 1、primary key的1个或多个列必须为NOT NULL,如果列为NULL,在增加primary key时,列自动更改为NOT NULL。而UNIQUE key 对列没有此要求。 2、一个表只能有一个primary key,但可以有多个UNIQUE key。 下面以 测试 说明: SQL> create table t (a int,b int,c int,d int); Table created. S...

by militala - MySQL文档中心 - 2009-01-01 15:12:50 阅读(7506) 回复(0)

在mysql中primary keykey的区别?

by wubai - PHP - 2004-02-18 16:42:31 阅读(907) 回复(0)

我使用alter table 修改表结构,同时增加constraint,请问如何将这个constraint drop 掉呢? 我无法找到constraint的名字?

by aaagggg - Informix - 2005-08-18 11:49:14 阅读(1715) 回复(1)

对于已经存在的table 在 MSSQL中建立primary key的语法: ALTER TABLE Table_name ADD CONSTRAINT CONSTRAINT_name primary key (Column_name) 能否在Oracle下类似的SQL语句? 顺便告知如何drop 此primary key.类似drop index

by sea01 - Oracle - 2004-12-24 17:41:42 阅读(2040) 回复(2)

我想获取每个表中构成primary key的所有字段。 比如:primary key AAA 由四个字段("ITEM", "LOC", "ORDERID", "SHIPDATE") 构成,那么我应改怎样获取呢?

by jacky.wang - Oracle - 2004-07-13 11:23:55 阅读(1167) 回复(3)

我是按照精华去的贴子安装mailserver的,在执行如下命令出现如下错误: 修改原来的vpopmail表,方法如下: use vpopmail; alter table vpopmail drop primary key; ERROR 1146: Table 'vpopmail.vpopmail' doesn't exist 这个'vpopmail.vpopmail' 表是在什么时候创建的!?? 该如何解决? 谢谢!mysql 第一次接触不大会用!!

by xuefg - 服务器应用 - 2004-04-21 12:58:43 阅读(2369) 回复(6)

Fedora9 用mysql官方网站下载的安装包 安装MySQL 安装之前已经完全删除旧有的安装 但是出现了这个提示 [root@localhost]# rpm -i /home/qq/Download/MySQL-server-5.1.26-0.glibc23.i386.rpm ERROR: 1062 Duplicate entry 'localhost-' for key 'primary' 080823 17:07:11 [ERROR] Aborting 080823 17:07:11 [Note] /usr/sbin/mysqld: Shutdown complete ............. 我到百度 google 都搜索过 在MySQL官方论坛上没有答...

by QQ373381050 - MySQL - 2008-08-26 12:26:52 阅读(5824) 回复(6)