The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
Evaluate true/false on string saved expression
Hi,
if a have a stored expressions in a column, can I evaluate it to true or false?
for example,
I have a column with values like:
exp (column name)
1=1
1=1 and 'a'<>'b'
and want to get back:
exp eval_result
1=1 true
1=1 and 'a'<>'b' true
1=1 and 'a'='l' true
is it possible?
0
Answers
My immediate thought is to generate SQL statements to evaluate the expressions...
Example:
Or this: