I have one table for storing status and comment.Some more columns are there.Now each time one new comment is posted I need to insert one new row in that table(change is only in the comment field , status and all other column values will remain as it is).What’s the best way of doing this?
I have one table for storing status and comment.Some more columns are there.Now each
Share
Assuming you’re using some SQL dialect you may be able to do something similar to:
This will insert a new row with the comment ‘Some comment’ and the values for (otherCol1, otherCol2, otherCol3) copied from an existing row. That existing row is not deleted.
Is it what you are asking for?