SQLсервер в Linux -самостоятельное освоение пакета



Пример 24


testdb=# SELECT trunc(1.598) AS natural-truncation.

testdb-# trunc(1.598. 1) AS one_decima1_point,

testdb-# trunc(1.598, 8) AS extra_places:

natural_truncation one_decimal_point | extra_places

1 | 1.5 | 1.59800000

(1 row)














Содержание  Назад  Вперед