文档解释
Error number: 3109; Symbol: ER_GENERATED_COLUMN_REF_AUTO_INC; SQLSTATE: HY000
Message: Generated column ‘%s’ cannot refer to auto-increment column.
:
Error 3109 – ER_GENERATED_COLUMN_REF_AUTO_INC
Error Description: This error occurs when referencing an auto-incrementing generated column in the list of expressions of an INSERT or UPDATE statement.
Common Case: It occurs when a user attempts to set the default value of an auto-incrementing generated column in the list of expressions of an INSERT or UPDATE statement.
Resolution: The default value of an auto-incrementing generated column cannot be set in the list of expressions of an INSERT or UPDATE statement. The value must be specified through the DEFAULT clause of the column definition. To avoid this error, make sure to specify the value of an auto-incrementing generated column using the DEFAULT clause of the column definition.
香港美国云服务器首选,2H2G首月10元开通。()提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。