I know the question is strange, but I decided to ask.
Suppose I have a function in PHP:
function calculate(a); Takes the value of a as input, performs some calculations and returns the value of b . The value of a comes from the database, a certain table column. And the program needs to filter by the value of b .
Is it possible to do this without rewriting the same function in SQL and without loading all the rows from the table?