把原来可空的列变成主键

alter table tableName column columnName  int not null;

alter table tableName add primary key(columnName);

这样就OK了

posted @ 2012-05-06 20:13  残阳飞雪  阅读(181)  评论(0编辑  收藏  举报