Actually, I have the exact same question as this topic, but none of those answers were quite what I was looking for.
The response by blokhead:
CREATE TABLE IF NOT EXISTS my_table (
foo INT,
bar VARCHAR(25)
);
was close, but it didn't continue with what to do then. After (or before . . . ) I run something like that, how can I INSERT if it didn't run (or if I run it before and the table doesn't exist)?
In reply to MySQL: Checking if a Table Exists by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |