villano Posted October 26, 2011 Report Share Posted October 26, 2011 Hola Amigos quisiera saber si alguien conoce algun generador automatico de procedimientos almacenados para mysql, que haga procedimientos para agregar modificar y eliminar datos de una tabla, tengo que hacer como mil xD. se que en sql existen pero para mysql?? de antemano gracias Link to comment Share on other sites More sharing options...
cañangasñangas Posted October 26, 2011 Report Share Posted October 26, 2011 (edited) pero es facil con php logras algo muy rapido $tuTabla = "tabla donde vas a insertar la mierda"; if(mysql_connect("server", "user", "pass") != false && mysql_select_db("database")){ for($i=0;$i<count($datos);$i++){ mysql_query("INSERT INTO $tuTabla (col1, col2, ...., coln-1, coln) VALUES ('".$datos[$i]['col1']."', '".$datos[$i]['col2']."',....., '".$datos[$i]['coln']."')"); } } Edited October 26, 2011 by cañangasñangas Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now