可能看起来像一个愚蠢的问题,但我不想在这里搞砸
会将
"update table SET field = LOWER(field)"
表格上的每个字段都转为小写?(并且什么也不做,否则,对吧?)
谢谢!
If you don't want to mess it BACK UP FIRST. We could be an evil bunch of trolls!
It will also cause any update trigger on the table to run.
Right. But you are working with two different fields in your query.
update table SET field = LOWER(field) WHERE field LIKE '%'
除了大表(尤其是 MyISAM)上可能的表锁之外,这应该没问题。
那就是:
更新表 SET field = LOWER(field)
这不会更新每个字段,只会将特定命名的字段转换为小写。