Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
3132 Näkymät

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
Hylkää
Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
jouluk. 23
3189
0
kesäk. 21
2604
1
marrask. 20
4389
2
maalisk. 24
5581
1
heinäk. 23
1592