Skip to content

表没有id,主键是uer_id且不是自增的,插入会报错,Error 1110 (42000): Column 'user_id' specified twice #1392

@penghang88

Description

@penghang88

[0.000ms] [rows:0] INSERT INTO user_extra (user_id,auth_token,user_id) VALUES (10,'c52c5fa6659afcfad0771c7c803d659f3abf2e41858b817d074b73a4f22a851b',10)

生成的sql带两个user_id

这是bug吗?还是我没有设置对,用的create()创建

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions