Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
2 rows in set (0.00 sec)
+--------------------+
2 rows in set (0.00 sec)
+------------+--------------+------+-----+-----------+----------------+
| Field
| Type
+------------+--------------+------+-----+-----------+----------------+
| id_cliente | int(11)
| nombre
| NO | PRI | NULL
| auto_increment |
| NULL
| accion
| insertado |
| varchar(10) | YES |
|
|
+------------+--------------+------+-----+-----------+----------------+
4 rows in set (0.08 sec)
mysql>
mysql> select * from clientes
-> ;
+------------+--------+-------------+-----------+
| id_cliente | nombre | seccion
| accion |
+------------+--------+-------------+-----------+
|
2 | rosa | comida
| insertado |
+------------+--------+-------------+-----------+
|
Timing | Created | sql_mode
| Definer
ation |
+-----------------------------+--------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+---------+---------------------------------------------------------------+----------------+----------------------+----------------------+-------------------+
| inserta_auditoria_clientes | INSERT | clientes | insert into auditoria_client
es(nuevo_nombre,seccion_nueva,usuario,modificado,proceso,id_cliente)values(NEW.n
ombre,new.seccion,CURRENT_USER(),NOW(),NEW.accion,NEW.id_cliente)
| utf8_general_ci
| utf8_general_
ci |
| Modifica_auditoria_clientes | UPDATE | clientes | insert into auditoria_client
es(nombre_nuevo,seccion_nueva,usuario,modificado,proceso,id_cliente)values(OLD.n
ombre,OLD.seccion,NEW.nombre,New.seccion,CURRENT_USER(),NOW(),NEW.id_cliente) |
BEFORE | NULL | STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTIO
N | root@localhost | utf8
| utf8_general_ci
| utf8_general_
ci |
| Eliminar_auditoria_clientes | DELETE | clientes | insert into auditoria_client
es(nombre_nuevo,seccion_nueva,usuario,modificado,proceso,id_cliente)values(OLD.n
ombre,OLD.seccion,CURRENT_USER(),NOW(),OLD.id_cliente)
| utf8_general_ci
| utf8_general_
ci |
+-----------------------------+--------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+---------+---------------------------------------------------------------+----------------+----------------------+----------------------+-------------------+
3 rows in set (0.20 sec)
mysql>