Scripting languages support
Brief summary of how the scripting languages are being handled.
Last updated
Brief summary of how the scripting languages are being handled.
Last updated
create or replace procedure get_row_count(TABLE_NAME VARCHAR)
returns float
not null
language javascript
as
$$
// Dynamically compose the SQL statement to execute.
var sql_command = "select count(*) from " + TABLE_NAME;
// Run the statement.
var stmt = snowflake.createStatement(
{
sqlText: sql_command
}
);
//... more code
$$
;