How to apply check constraint on column having type string to not allow empty string

前端 未结 0 1724
执念已碎
执念已碎 2021-01-22 03:55

I have a type struct as follows in GOLANG where I am using GORM. In the following for the location column I want it not allow empty string.

type companyEvents str         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题