How to use regexp on the results of a sub query?
问题 I have two tables. User which has id and phone number id phone_no 1 ---- 9912678 2 ---- 9912323 3 ---- 9912366 Admission Table , which has id phone number id phone_no 6 --- 991267823 7 --- 991236621 8 --- 435443455 9 --- 243344333 I want to find all the phone number of Admission's table which has same pattern as users table and update it in users table. So i am trying this select phone_no from admission where phone_no REGEXP (SELECT phone_no FROM `users` AS user WHERE user.phone_no REGEXP '^