Home  >  Q&A  >  body text

php - msyql4 characters

Original sql field information:
koubei_desc text COMMENT 'Word of mouth description (optimal)'
Want to modify the encoding:
ALTER TABLE rank_sku CHANGE koubei_desc koubei_desc text COMMENT 'Word-of-mouth description (optimal)' CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Why does SQL report an error after adding COMMENT 'Word of mouth description (optimal)'? Is it ok if I don’t add it? I want to add COMMENT 'Word of mouth description (optimal)', how to modify the SQL?

phpcn_u1582phpcn_u15822638 days ago834

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-04 13:45:26

    I remember that MySQL keywords have order requirements, try putting the comment at the end

    reply
    0
  • Cancelreply