SnowConvert AI - Sybase IQ - CREATE FUNCTION¶
Description¶
Creates a user-defined function (UDF) that returns a scalar value. SnowConvert AI translates Sybase IQ UDFs to Snowflake UDFs, mapping parameters and data types to Snowflake equivalents.
Note
Sybase IQ supports Transact-SQL as language. For Transact-SQL to Snowflake guidance, see the SQL Server/Azure Synapse translation reference: Built-in Functions. This section documents statement translation specific to Sybase IQ.
Grammar Syntax¶
Sample Source Patterns¶
Input Code:¶
Sybase¶
Output Code:¶
Snowflake¶
Notes¶
Parameter and return data types are translated to their Snowflake equivalents.
For procedural logic that cannot be expressed as a SQL UDF, SnowConvert AI may use a JavaScript UDF or recommend a stored procedure.