I have a table which contains say X rows and 10 columns. User has an option to edit any of the rows and columns and also he can add new rows and add details to it. He has a single button 'Save' and check box upon every row. He can select the rows which he has edited and inserted using the check box and save it using the Save button.
Now my question is, consider the user has edited X-1 rows and inserted some 3 rows. and has selected only the edited and inserted rows. How can i insert and update at the same time when he clicks the 'Save' button.
P.S: I am using Java Script and SQLj.