设想:
Table1 的字段名称命名为 testtable
ID、名称、大小、宽度、高度
Table2 的字段名称命名为 errortable
id,desc,field1,field2,operator
errortable 的值
+----+-------------------------------------+--------+--------+----------+
| id | desc | field1 | field2 | operator |
+----+-------------------------------------+--------+--------+----------+
| 1 | size should not greater than width | size | width | > |
| 2 | size should not greater than height | size | height | > |
| 3 | with should be equal to height | width | height | <> |
+----+-------------------------------------+--------+--------+----------+
Run Code Online (Sandbox Code Playgroud)
现在我想检查testtable: