mysql同一个表两个字段间模糊查询

如下:

select username,phone from user where  username like CONCAT('%', phone ,'%');

查询username字段中与phone字段值相似的记录

 

posted @ 2021-03-11 16:45  17601621550  阅读(251)  评论(0编辑  收藏  举报