Estoy tratando de ejecutar la siguiente consulta y me devuelve error:
Código PHP:
$con_base = mysql_connect("localhost", "root", "lolo");
mysql_select_db("personallocal", $con_base);
$tablas = mysql_query("
TRUNCATE areas;
TRUNCATE cargo;
TRUNCATE cat_ocup;
TRUNCATE class_cargo;
TRUNCATE class_cargo_1;
TRUNCATE grup_escala;
TRUNCATE pagos;
TRUNCATE subareas;
TRUNCATE t_fam_ext;
TRUNCATE t_mission_int;
TRUNCATE t_personas;
TRUNCATE t_plantilla;
TRUNCATE t_plaza;
TRUNCATE t_ropa;
TRUNCATE t_sanc_trib;
TRUNCATE t_trab_general;", $con_base);
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; TRUNCATE cargo; TRUNCATE cat_ocup; TRUNCATE class_cargo; TRUNCATE class_ca' at line 1
Si alguien me puede ayudar se lo agradeceria
Saludos Rodno.