I have a table ("table1") with 3 columns called col1, col2 and col3 (each one is VARCHAR) with 4 values, as shown below:
col1 col2 col3 datA1 datB1 datC1 datA2
I need the ability to add data at any time to any column that does not affect the others. A very popular code on the Internet is that (let's say we need to add data only to col2 and col3 columns):
INSERT INTO table1 (col2, col3) VALUES ('datB2', 'datC2');
But it adds new lines as shown below:
col1 col2 col3 datA1 datB1 datC1 datA2 NULL datB2 datC2
I really need to fill in a row, starting with the value "datA2" in the column "col1", with the new values โโand get the table as shown below:
col1 col2 col3 datA1 datB1 datC1 datA2 datB2 datC2
If someone can help me, I will be very grateful !!! Thank you Arseny.
Update: The table has 3 columns and the answers of each column for a certain type of value (for example: name, color, size). I only need the ability to add new values โโat any time in a particular column and have them without Null and new rows, if there is a free cell before that.
source share