Change MySQL stored procedure 'Database Collation' name

前端 未结 1 1951
生来不讨喜
生来不讨喜 2021-01-11 17:59

I have imported a DB from Local machine to server machine. While importing the Database, the character set values of the DB are set by system default to \"Latin\". I have ch

相关标签:
1条回答
  • 2021-01-11 18:42

    As documented under CREATE PROCEDURE and CREATE FUNCTION Syntax (emphasis added):

    If CHARACTER SET and COLLATE attributes are not present, the database character set and collation in effect at routine creation time are used. To avoid having the server use the database character set and collation, provide explicit CHARACTER SET and COLLATE attributes for character data parameters.

    If you change the database default character set or collation, stored routines that use the database defaults must be dropped and recreated so that they use the new defaults.

    0 讨论(0)
提交回复
热议问题