CREATE OR REPLACE TRIGGER new_sms
before insert
on CUSTMEMBER FOR EACH ROW
declare
str varchar2(150);
begin
str:='尊敬的'||:NEW.CMNAME||',欢迎您加入VIP会员俱乐部,我们将竭诚为您提供优质的服务,欢迎您拨打客服专线';
--if (length(TRIM(:new.CMMOBILE1)) = 11) then
INSERT INTO YZL_DX_SEND (CDMNO,CMNAME,CONTENT,MOBILE,SB,FS_DATE,send) values(:NEW.CMCUSTID,:NEW.CMNAME,str,:NEW.CMMOBILE1,'3',sysdate,'N');
--END IF;
end;