Given a table rules
rule_id = 1
rule_condition = 'size > 15'
how can I run a query like this
SELECT * FROM rawdata where (Select rule_condition FROM rules WHERE rule_id=1)
Is the only way to do it a stored procedure like this: mysql - query inside a query
SELECT * FROM rawdatato be executed with a fully dynamicWHEREclause? In your example you want the query to return the results ofSELECT * FROM rawdata WHERE Size > 15?