免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 13587 | 回复: 1
打印 上一主题 下一主题

mysql:如何取消掉主键 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-10 11:14 |显示全部楼层 |倒序浏览
15可用积分
我的student表中设置了唯一主键:GUGID字段
Field    | Type         | Null | Key | Default | Extra          |
+----------+--------------+------+-----+---------+----------------+
| GUGID    | int(      |      | PRI | NULL    | auto_increment
我想取消掉主键,请大家帮忙,该怎么取消啊,
我用     alter table student drop primary key (GUGID);
        或 alter table student drop primary key;
  报错:Incorrect table definition; There can only be one auto column and it must be defined as a key

取消不掉的,  请大家帮忙 谢谢大家!!

[ 本帖最后由 zhzy_zh 于 2007-12-11 09:19 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-12-11 09:19 |显示全部楼层
int(1),int(2),int(3),echo "aaaaaa";int(;int(9).int(10).int(,int(;int(\11)12)13)14)15)16)17)1 ) :emn4: :emn1: 论坛漏洞:当编写int(\8\)或8\)时出现符号

[ 本帖最后由 zhzy_zh 于 2007-12-11 09:28 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP