@lexstile

Создаю в табилице DB (mysql) поле с типом DECIMAL, какое ему нужно записать значение?

Планирую работать с числами до 3-х знаков (до тысячных) после запятой - не более.
https://dropmefiles.com/YeGkU
  • Вопрос задан
  • 31 просмотр
Решения вопроса 1
@justabit
А документацию придумали для кого? Всё же описано... https://dev.mysql.com/doc/refman/5.7/en/precision-...

The declaration syntax for a DECIMAL column is DECIMAL(M,D). The ranges of values for the arguments are as follows:

M is the maximum number of digits (the precision). It has a range of 1 to 65.

D is the number of digits to the right of the decimal point (the scale). It has a range of 0 to 30 and must be no larger than M.

Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы