Creating and calling stored procedures¶
You can use the SQL API to create and call stored procedures. The following is an example of the body of a POST request that creates a new stored procedure that passes in the name of a table and returns the number of rows in that table:
The following is an example of the body of the response for this request:
The following is an example of the body of a POST request that calls the stored procedure, passing in the table name “prices”:
The following is an example of the body of the response for this request: