Declare
Sqlstr1 varchar2 (500);
The begin
Sqlstr1:='select execmd (' | |' localhost 'mysql - h - u ly - p159 mysql - execute=' | | '" insert into contactinfo (fid, telephone) values (' | | : new. The iscg | |', 123);" "' | | ') from dual ';
The execute immediate sqlstr1;
end;
Is to have data in table_qingce trigger when inserted, and then call execmd function performs CMD command to insert a mysql database data, such as I to insert data table_qingce (after 9, failure), can be found in the v $SQL select execmd (localhost 'mysql - h - u ly - p159 mysql - execute="insert into contactinfo (fid, telephone) values (9123);" ') from dual, but not the MySQL database and insert new data, make a copy of this statement out new open window to run SQL, MySQL database insert the new data, consult everybody a great god know what reason is this? Thank you very much ~ ~
CodePudding user response:
You haven't call the operating system command statements,CodePudding user response: