以其他字段作为某一字段的值. 字段长度char_length(?)

UPDATE t_dealer a INNER JOIN t_dealer b ON a.id=b.id SET a.zihao=b.shortName where a.zihao is null or a.zihao='' and char_length(a.shortName)<=20

posted @ 2014-10-13 01:06  NewObject_1  阅读(170)  评论(0编辑  收藏  举报