1

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?

George Cummins
  • 28,485
  • 8
  • 71
  • 90
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265

4 Answers4

3

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

bpoiss
  • 13,673
  • 3
  • 35
  • 49
1

This is probably a stored procedure, have a look in the stored procedures created for your database.

Andre Lombaard
  • 6,985
  • 13
  • 55
  • 96
1

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.

Code Lღver
  • 15,573
  • 16
  • 56
  • 75
1

This is a store procedure in mysql, you can find procedure in phpmyadmin.

Rakesh Singh
  • 1,250
  • 9
  • 8