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
  • 27,682
  • 8
  • 67
  • 90
Milos Cuculovic
  • 18,933
  • 50
  • 154
  • 263

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,142
  • 3
  • 33
  • 48
1

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

Andre Lombaard
  • 6,745
  • 13
  • 54
  • 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,434
  • 16
  • 54
  • 74
1

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

Rakesh Singh
  • 1,250
  • 9
  • 8