You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a trigger for Table A so that when a set of data is inserted into Table A, it simultaneously triggers an operation to insert the current data into Table B. I have already read the WCDB project (StatementCreateTrigger) and related wikis, but I have no idea how to use WCDB’s API to handle NEW.ColumnName in the trigger. How can I express NEW.ColumnName using WCDB's API? Here is the SQL statement:
CREATE TRIGGER IF NOT EXISTS ATrigger
AFTER INSERT ON ATable
FOR EACH ROW
BEGIN
INSERT INTO BTable(id,title,content) VALUES(NEW.id,NEW.title,NEW.content);
END;
The text was updated successfully, but these errors were encountered:
The language of WCDB
The version of WCDB
The platform of WCDB
The installation of WCDB
What's the issue?
The text was updated successfully, but these errors were encountered: