1. สร้าง Project ใหม่โดยเลือกที่ File-> New-> Flex Project แล้วสร้าง Application ชื่อ Hello World
2. เราจะได้ไฟล์ main.mxml เลือกเป็น code view
3. เพิ่ม code
4. กดปุ่ม run ก็จะได้ Hello world application แบบง่ายๆ ออกมา
CREATE PROCEDURE SP_THROW_MESSAGE(pInput smallint)
begin
if(pInput = 1) then
insert into tablename values('x');
else
--throw exception
SIGNAL SQLSTATE '99999' SET MESSAGE_TEXT = 'test throw exception';
end if;
end
call SP_THROW_MESSAGE(2)
CREATE PROCEDURE SP_THROW_MESSAGE(pInput smallint)
begin
declare exit handler for sqlexception
p1:begin
SIGNAL SQLSTATE '12345' SET MESSAGE_TEXT = 'TEST';
end p1;
insert into tablename values('x');
end
call SP_THROW_MESSAGE()
Server1
[trunk1]
type=peer
host=10.1.1.2
username=102
secret=102
fromuser=102
Server2
[trunk2]
type=peer
host=10.1.1.1
username=101
secret=101
fromuser=101
Server1
exten=>_9.,1,Dial(SIP/${EXTEN:3}@trunk1,30,r)
Server2
exten=>_9.,1,Dial(SIP/${EXTEN:3}@trunk2,30,r)