locate(substr, str [, pos])
返回在pos位置之后,substr在str中出现的位置。若substr在str的pos位置之后没有出现,则返回0。
select locate('bing', 'wubinggo') # ->3
select locate('bing', 'wubinggl', 2)
# ->3,不是3-2=1
select locate('bing', 'wubinggo', 3)
# ->0
表操作
alter table old_name rename new_name;
# 修改表名