How to use column value as select expression
问题 There is a table that contains a column containing a SQL select expression. See the following example: ╔════╦════════╦═══════════════════════════════════════════╗ ║ ID ║ Code ║ Expression ║ ║ 1 ║ B12321 ║ SELECT * FROM table WHERE code LIKE '%' ║ ║ 2 ║ A35525 ║ SELECT * FROM table WHERE code = '1234' ║ ║ 3 ║ C23213 ║ SELECT * FROM table WHERE code <> '%D' ║ ╚════╩════════╩═══════════════════════════════════════════╝ I want to loop throught the Expression column, execute those statements and