Como crear un select
$select = new Select(); $select->add_table("tabla"); $select->add_field("*"); $select->add_where_eq("columna", $valorPorBuscar); // devuelve la cadena de select $select->build();
Como crear un insert
$insert = new Insert(); $insert->add_table("tabla"); $insert->add_field_value("columna", $valorPorInsertar); // Devuelve la cadena de insert $insert->build();
Como crear un update
$update = new Update(); $update->add_table("tabla"); $update->add_field_value("columna", $valorPorActualizar); $update->add_where_eq("columna_filtro", $valorPorBuscar); // Devuelve la cadena de update $update->build();
Como crear un delete
$delete = new Delete(); $delete->add_table("tabla"); $delete->add_where_eq("columna", $valorPorBuscar); // Devuelve la cadena de delete $delete->build();