Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
3270 Ansichten

hello guys. i want to ask some questions about SQL constraints when importing data in odoo

let's say i have 1 field (name) and I've added SQL constraints unique to that field.. what happens if we importing 2 rows with the same name?


for example:
rows 1: test123
rows 2: test123


do the validation sql constraints pop up shows or we keep importing the data but only the last row (row 2)? thanks


Avatar
Verwerfen
Beste Antwort

Hi,
The SQL constraints do work while importing data.
Regards

Avatar
Verwerfen
Beste Antwort

You can check importing with sample date.

I think import will fail due to constraint error. Once remove duplicate row, then only import success.

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Dez. 23
3410
0
Juni 21
2711
1
Nov. 20
4533
2
März 24
5757
1
Juli 23
1738