i have to create a new column in my SQL db. The new column should have some data from two other existing colums.
I thought this is a simply SQL command, but it doesn't fill the new column with data
ALTER TABLE table1 ADD COLUMN new_C text;
INSERT INTO table1 (new_C)
SELECT IFNULL (title_1, title_2) from table1;
The new column is created, but it is filled with "NULL". Can somebody help me, what i'm doing wrong?
Thank you