I am working on an old project and just saw a function:
$query = 'call update_oai()';
$res = $_DB->queryRaw($query);
I really can't find what is this query: "call update_oai". Any idea?
I am working on an old project and just saw a function:
$query = 'call update_oai()';
$res = $_DB->queryRaw($query);
I really can't find what is this query: "call update_oai". Any idea?
CALL statement invokes a stored procedure, in your case the stored procedure with name update_oai
.
Syntax:
CALL sp_name([parameter[,...]])
See documentation http://dev.mysql.com/doc/refman/5.0/en/call.html
This is probably a stored procedure, have a look in the stored procedures created for your database.
In PHP, the CALL
is used to call the store procedures and the name of procedure is update_oai
here that have no arguments.
So there is calling a store procedure.