代码如下:

select * from user where first_name REGEXP '^john$';