例如表tb中的字段details裏面有大量的信息,如:164CM,50KG 張山134CM 楊武45KG 波波123CM,36D
把details裏面,符合1??CM這樣的信息,都複製到tall字段
update tb set tall=substring(details,patindex('%CM%',details) - 3,patindex('%CM%',details)-1)
where details like '1[1-9][1-9]CM%'
例如表tb中的字段details裏面有大量的信息,如:164CM,50KG 張山134CM 楊武45KG 波波123CM,36D
把details裏面,符合1??CM這樣的信息,都複製到tall字段
update tb set tall=substring(details,patindex('%CM%',details) - 3,patindex('%CM%',details)-1)
where details like '1[1-9][1-9]CM%'