MySQL error: key specification without a key length

前端 未结 16 1305
别跟我提以往
别跟我提以往 2020-11-22 08:41

I have a table with a primary key that is a varchar(255). Some cases have arisen where 255 characters isn\'t enough. I tried changing the field to a text, but I get the foll

16条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 09:20

    Use like this

    @Id
    @Column(name = "userEmailId", length=100)
    private String userEmailId;
    

提交回复
热议问题