CREATE DATABASE IF NOT EXISTS evita l’errore se lo schema esiste già, ma MySQL può emettere un warning.
Puoi distinguere creazione nuova e database esistente controllando il warning count dopo l’esecuzione.
CREATE DATABASE IF NOT EXISTS evita l’errore se lo schema esiste già, ma MySQL può emettere un warning.
Puoi distinguere creazione nuova e database esistente controllando il warning count dopo l’esecuzione.