Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/04/2009, 08:22
Avatar de rodno
rodno
 
Fecha de Ingreso: enero-2009
Ubicación: En algun lugar de Cuba
Mensajes: 426
Antigüedad: 15 años, 2 meses
Puntos: 43
Pregunta Error en Ejecucion de Consulta

Buenas,

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); 
Error :

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.