Created
July 2, 2024 14:05
-
-
Save mrl22/9e4df3ed1c248c4cf8aca9897b566cb7 to your computer and use it in GitHub Desktop.
3CX CRM MySQL Query for WHMCS Contacts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select id as contactid, firstname, lastname, email, phonenumber as phonebusiness from tblcontacts where CONCAT('44',TRIM(LEADING '0' FROM TRIM(LEADING '+44.' FROM REPLACE(phonenumber, ' ', '')))) = '@Number'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment