Answer the question
In order to leave comments, you need to log in
How not to add the same values to the database + check one field?
Good afternoon!
There is a request:
insert into test1 (case_id, component_number, component_name, test_type, test_name, test_description, cft, bisquit, cif, cifle)
values ('1', '018', 'nam_comp', 'pos', 't_01', 'тут текст', '1', 'false', 'false', 'false')
ON CONFLICT (case_id) DO update set
test_description='--новый текст--';
Answer the question
In order to leave comments, you need to log in
1. when adding new records, the same records were not added
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question