MySQL Forums
Forum List  »  Newbie

Re: How do i display comments i've made in an SQL table?
Posted by: Peter Brawley
Date: August 29, 2016 04:58PM

Create ...

- a table, eg log(id unsigned PK auto inc, db varchar(64), table varchar(64), timestamp, action char(1), comment varchar(128) )

- a stored procedure save_comment(pdb, ptable, paction, pcomment) which on being called inserts a row into the log table with passed param values

- for each table which you wish to thus log, create insert, update and delete triggers that call that sproc.

Options: ReplyQuote


Subject
Written By
Posted
Re: How do i display comments i've made in an SQL table?
August 29, 2016 04:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.