Skip to content

How to write a custom function in SQL? #4850

Closed Answered by pawelsalawa
JrgMyr asked this question in Q&A
Discussion options

You must be logged in to vote

I believe your leftstr implementation code should start with SELECT first. The implementation code has to be a full, valid SQL statement, not just expression, because it allows also INSERTs, UPDATEs, DELETEs and even multiple SQL statements as single function.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JrgMyr
Comment options

@JrgMyr
Comment options

@pawelsalawa
Comment options

Answer selected by JrgMyr
@JrgMyr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants