create table info (
ID int generated always as identity,
FirstName text,
LastName text,
Year int2,
Mounth int2,
primary key (FirstName, LastName)
);
INSERT INTO info (FirstName, LastName, Year, Mounth) VALUES ('Дима', 'Скрипов', 1999, 12)
ON CONFLICT (FirstName, LastName) DO UPDATE SET
Year = excluded.Year,
Mounth = excluded.Mounth;