CALL Statement
The CALL statement invokes the given table function and returns the results.
Thanks to the
FROM-first syntax and the fact that procedures in DuckDB are implemented as table functions, you can useFROMinstead ofCALL.
Examples
Invoke the ‘duckdb_functions’ table function:
CALL duckdb_functions();Invoke the ‘pragma_table_info’ table function:
CALL pragma_table_info('pg_am');Select only the functions where the name starts with ST_:
SELECT function_name, parameters, parameter_types, return_typeFROM duckdb_functions()WHERE function_name LIKE 'ST_%';