1440 计算布尔表达式的值
SQL架构
Create Table If Not Exists Variables_1440 (name varchar(3), value int);
Create Table If Not Exists Expressions_1440 (left_operand varchar(3), operator ENUM('>', '<', '='), right_operand varchar(3));
Truncate table Variables_1440;
insert into Variables_1440 (name, value) values ('x', '66');
insert into Variables_1440 (name, value) values ('y', '77');
Truncate table Expressions_1440;
insert into Expressions_1440 (left_operand, operator, right_operand) values ('x', '>', 'y');
insert into Expressions_1440 (left_operand, operator, right_operand) values ('x', '<', 'y');
insert into Expressions_1440 (left_operand, operator, right_operand) values ('x', '=', 'y');
insert into Expressions_1440 (left_operand, operator, right_operand) values ('y', '>', &#