CALL#
Примечание
Ниже приведена оригинальная документация Trino. Скоро мы ее переведем на русский язык и дополним полезными примерами.
Синтаксис#
CALL procedure_name ( [ name => ] expression [, ...] )
Описание#
Call a procedure.
Procedures can be provided by connectors to perform data manipulation or administrative tasks. For example, the System коннектор defines a procedure for killing a running query.
Some connectors, such as the PostgreSQL коннектор, are for systems
that have their own stored procedures. These stored procedures are separate
from the connector-defined procedures discussed here and thus are not
directly callable via CALL
.
See connector documentation for details on available procedures.
Примеры#
Call a procedure using positional arguments:
CALL test(123, 'apple');
Call a procedure using named arguments:
CALL test(name => 'apple', id => 123);
Call a procedure using a fully qualified name:
CALL catalog.schema.test();