Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Konsep Merubah Nomor 081 –> ke +6281

Konsep Merubah Nomor 081 –> ke +6281

DECLARE btstelepon1 INT;
SELECT LOCATE(‘+’,new.SenderNumber) INTO btstelepon1;
IF btstelepon1 > 0 THEN
SELECT REPLACE(NEW.SenderNumber,’+62′,’0′) INTO notelp;
SELECT COUNT(*) INTO jumlah FROM list_user where
no_telepon = notelp;
ELSE
SELECT NEW.SenderNumber INTO notelp;
END IF;

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>