0
我創建了一個觸發的結果集,我沒有設置任何返回值,但有跡象表明不允許返回從觸發
DELIMITER //
CREATE TRIGGER Trig_InsertIBDActionURL AFTER INSERT ON tbl_ibdcalllog FOR EACH ROW
BEGIN
DECLARE ActionURL varchar(500);
select @ActionURL := trim(`actionurl`) from tbl_client where id=NEW.clientid;
if(CHAR_LENGTH(ActionURL) <> 0) THEN
insert into tbl_ibdactionurl (Call_id,clientid,mobile_number,language,call_starttime,call_duration,keypress,file_name,obd_status,
operator,circle,failure_reason,smsflag,datacapture,latch_duration,latchcreditused,creditused,country_code,callcenter_no,ActionURL)
(select id,clientid,mobile_number,language,call_starttime,call_duration,keypress,file_name,obd_status,operator,circle,failure_reason,
smsflag,datacapture,latch_duration,latchcreditused,creditused,country_code,callcenter_no, @ActionURL from tbl_ibdcalllog where id = NEW.id);
END IF;
END;//
DELIMITER ;