Hello
I have two tables.
Pending (id, uid, data)
Approved (id, uid, data)
When data is submitted it is inserted into the pending table. Once approved I want the data to be transferred into the approved table.
| SitePoint Sponsor |


Hello
I have two tables.
Pending (id, uid, data)
Approved (id, uid, data)
When data is submitted it is inserted into the pending table. Once approved I want the data to be transferred into the approved table.
you can write a trigger
like
CREATE TRIGGER myTrigger
AFTER INSERT ON PENDING
FOR EACH ROW
BEGIN
CHK HERE APPROVED CONDIN
IF APPROVED
INSERT INTO Approved (id, uid, data) values(id, uid, data)
END


Bookmarks