I have a table:
CREATE TABLE Students (studentId TEXT PRIMARY KEY, name TEXT);
I want to insert records into a table, if I insert a student twice, I want a second insert to override (update) the first record.
INSERT INTO Students (StudentId, name) VALUES ('123', 'Jones'); INSERT INTO Students (StudentId, name) VALUES ('123', 'Jonas');
What is the best way to do this?
source share