我有下表
mytable
type | id | name | formula
"simple" | 1 | "COUNT" | "<1>"
"simple" | 2 | "DISTINCT" | "<2>"
"simple" | 3 | "mycol" | "<3>"
"complex" | 4 | null | "<1>(<2> <3>)"
现在我想阅读此表并添加一个替换公式字符串的附加列。对于 id 4,我需要:"COUNT(DISTINCT mycol)"
知道我该怎么做吗?