0
golang
DB.Select("name, vin_id").Where("UPPER(name) LIKE UPPER(?)", "%"+name+"%").Find(&vins)

Why is this working??? Golang GORM

SQL
select * from Table_Name
where  UPPER(Column_Name) = UPPER('mY Any Value')

I want the search to the table to be case insensitive

blackgreen
  • 34,072
  • 23
  • 111
  • 129
Pavel
  • 11

0 Answers0