There’s no difference. They are synonyms.
From the CREATE TABLE
manual entry:
KEY
is normally a synonym forINDEX
. The key attributePRIMARY KEY
can
also be specified as justKEY
when given in a column definition. This was
implemented for compatibility with other database systems.