Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6314 Lượt xem

There are 2 datatypes for fixed point values and 4 for floating point numbers in SQL.

Which are used for fields.float and fields.function (type='float', store=True) ?

Thanks.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello René, it seems all of them use the 'numeric' datatype. You can check for yourself using psql and describing a table ( \d <table_name>). You can check this out in the account_voucher module with the account_voucher_line table. Install this module and then \d(escribe) the table. Hope this helps!

Best regards,

Bruno Figares.

Ảnh đại diện
Huỷ bỏ
Tác giả

I've done that and the result is: fields.float (no digit attribute): double precision. fields.function(type='float', store=True): numeric.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2372
0
thg 2 21
1990
0
thg 9 24
140
4
thg 9 18
4514
5
thg 4 16
5385