Posted on 10th September 2024|2754 views
When do we get this time kind of error "Query has no result for destination data" in PostgreSQL?
Posted on 10th September 2024| views
Well, this happens when we try to create a function that does not return a selected result set as it has to return the set.
Reason for the error you're getting is because there is no return statement in between your BEGIN and END. After all, the return statement sends or displays the output.