If for example I had this database:
id result
__________
1 55
2 67
And a function isPrime(number) which returns a boolean true or false if the number is prime,
Is there anyway for me to select numbers based on if isPrime = true;
something like this..
"SELECT * FROM DB WHERE result.isPrime()"
Thanks for any help
isPrime()is a Python function, then no, you cannot call that function inside your query because the query is executed inside the database, and there is not Python interpreter or python data types inside the database.