我想知道我这写的没有问题 ,可是为什么会报错,求大佬解答
CREATE TABLE users(
-> id SMALLINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
-> username varchar(10) NOT NULL,
-> pid SAMLLINT UNSIGNED,
-> FOREIGN KEY (pid) REFERENCES provinces (id)
-> );
ERROR 1064 (42000): 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 'SAMLLINT UNSIGNED,
FOREIGN KEY (pid) REFERENCES provinces (id)
)' at line 4