Convert BIGINT UNSIGNED to INT

后端 未结 3 1370
无人共我
无人共我 2021-02-13 07:21

I know it is unorthodox and potentially dangerous to want to convert something from a larger to a smaller sized data type. However, in this case, it is extremely unlikely that t

3条回答
  •  一个人的身影
    2021-02-13 07:45

    If you try to create the function that way, you will get this error:

    ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,
    or READS SQL DATA in its declaration and binary logging is enabled
    (you *might* want to use the less safe log_bin_trust_function_creators
    variable)
    

    See this link for details on how to resolve it:

    http://dev.mysql.com/doc/refman/5.0/en/stored-programs-logging.html

提交回复
热议问题