I currently have this trigger in MySQL. (On Table 1, EVENT: Before Insert)
set new.combinedColumn = concat(trim(new.column1), trim(new.column2))
How do I combine two columns like this, except in SQLite? I've tried multiple different ways and haven't been able to get a working statement.
This is what i have so far
BEFORE INSERT ON [Table]
FOR EACH ROW
BEGIN
set Column1 = column2 || column3;
END >
i get the error
5/9/2014 2:19:34 PM: SQL Error: near "set": syntax error <CREATE TRIGGER [insert]