C
C
cbv2016-11-15 02:09:08
PHP
cbv, 2016-11-15 02:09:08

How to properly store boolean conditions in MySQL?

There are conditions that characterize states. The conditions are binary. For example:
state1 = condition1 or condition2;
state2 = (condition2 and condition3) or condition4;
state3 = condition7;
etc.
There are many conditions and conditions.
Question: how to write a set of conditions for each state to the MySQL database, so that it can then be conveniently processed in PHP?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-11-15
@xmoonlight

stored procedures...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question