Ask Your Question
1

Why doesn't the SELECT statement within a FUNCTION work in MariaDB when selecting a table?

asked 2021-08-08 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-04-01 12:00:00 +0000

plato gravatar image

The SELECT statement within a FUNCTION in MariaDB may not work when selecting a table because table-level operations are not allowed in a function. Functions are designed to return a single value, and table-level operations may return multiple rows and columns, which can cause issues with the function's behavior. To perform table-level operations, use a stored procedure instead of a function.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-08 11:00:00 +0000

Seen: 9 times

Last updated: Apr 01 '23