这个不好判定
手机、固话位数不同
区号长短不同
要找出规律要求纯数字的check可以这么写
create table test1234(
id number primary key,
phone varchar2(12) check(length(regexp_replace(phone,'[[:digit:]]'))=0));
手机、固话位数不同
区号长短不同
要找出规律要求纯数字的check可以这么写
create table test1234(
id number primary key,
phone varchar2(12) check(length(regexp_replace(phone,'[[:digit:]]'))=0));
id number primary key,
phone varchar2(12) check(regexp_like(phone,'^029[0-9]{8}'));)