select id ,name ,phone_number from contacts where substring(phone_number,1,1) != 0 and (char_length(phone_number) = 10 or phone_number like '___-___-____') 不用正则的办法