How to make a check in the query, if the column (field) in the table exists, then it is written to it. Here is my attempt:
INSERT INTO `table` SET `col1` = 1, `col2` = 2, IF(EXISTS(`c`), `col3` = 3) How to make a check in the query, if the column (field) in the table exists, then it is written to it. Here is my attempt:
INSERT INTO `table` SET `col1` = 1, `col2` = 2, IF(EXISTS(`c`), `col3` = 3) Source: https://ru.stackoverflow.com/questions/896732/
All Articles