为什么mysql里面设置符合主键它显示我错了?

create table xs(
-> uid int,
-> upwd int,
-> uname varchar,
-> primary key(uid,upwd)
-> );
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '

primary key(uid,upwd)

)' at line 7

为什么mysql里面设置符合主键它显示我错了?

VARCHAR使用的时候必须指明字符数