sql_alter("TABLE table ADD COLUMN colonne INT"); sql_alter("TABLE table ADD colonne INT"); // COLUMN est optionnel sql_alter("TABLE table CHANGE colonne colonne INT DEFAUT '0'"); sql_alter("TABLE table ADD INDEX colonne (colonne)"); sql_alter("TABLE table DROP INDEX colonne"); sql_alter("TABLE table DROP COLUMN colonne"); sql_alter("TABLE table DROP colonne"); // COLUMN est optionnel sql_alter("TABLE spip_tradlang RENAME spip_tradlangs"); // possibilite de passer plusieurs actions, mais attention aux portages : sql_alter("TABLE table DROP colonneA, DROP colonneB");