mysql添加唯一約束 創(chuàng)建表時(shí)mysql添加唯一約束條件?
創(chuàng)建表時(shí)mysql添加唯一約束條件?Trycreate table user(id int not null auto uuu Increase,name varchar(100)not null,p
創(chuàng)建表時(shí)mysql添加唯一約束條件?
Try
create table user
(
id int not null auto uuu Increase,
name varchar(100)not null,
password varchar(100)not null,
primary key(id),
unique key(name)
事實(shí)上,這與您的MySQL版本有關(guān),語法會(huì)有所不同
你可以下載mysqlbrowser的圖形界面,然后通過圖形方式生成語句