I have 4 columns in a table and I have data for 3 columns as below
TableTest Col1 | Col2 | Col3 D11 | D12 | D21 | D22 |
Usually the update request will be
Update TableTest SET Col1 = D11 , Col2 = D12 , COL3 = newdata Where Col1= D11
Scenario: an update request should only transfer data to COL3, it should skip Col1 and Col2 because it is already filled with data (even if the same or different data for Col1 and Col2)
sql php mysql sql-update
user5621153
source share