# 方法一: 使用replace()函数
# 语法:
# replace(字段,'原始值','替换值')
update titles_test 
set emp_no=replace(emp_no,'10001','10005')
where id=5;
# 方法二: 使用replace into语句
#  用replace into 的两种题解
# replace into titles_test 
# select 5,10005,title,from_date,to_date
# from titles_test
# where id=5 and emp_no=10001;

-- replace into titles_test values(5,10005,'Senior Engineer', '1986-06-26', '9999-01-01')