跳至內容
選單
此問題已被標幟
2 回覆
3198 瀏覽次數

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


頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

You can check importing with sample date.

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 23
3296
0
6月 21
2647
1
11月 20
4447
2
3月 24
5652
1
7月 23
1661