55 lines
2.3 KiB
Plaintext
Executable File
55 lines
2.3 KiB
Plaintext
Executable File
select TRUNCATE(10.55, 3)
|
|
select TRUNCATE(10.55, 2)
|
|
select TRUNCATE(10.55, 1)
|
|
select TRUNCATE(10.55, 0)
|
|
select TRUNCATE(10.55, -1)
|
|
select TRUNCATE(10.55, -10)
|
|
select TRUNCATE(-10.55, 1)
|
|
select TRUNCATE(99, 1)
|
|
select TRUNCATE(10.55, 1) + 1
|
|
select TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(123.123456789, 9), 8), 7), 6), 5), 4), 3)
|
|
select TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(TRUNCATE(123456789.123456789, -1), -2), -3), -4), -5), -6), -7)
|
|
select TRUNCATE(87654321.123456789, id) from ts_4893.meters order by ts limit 10
|
|
select TRUNCATE(current, id) from ts_4893.meters order by ts limit 10
|
|
select TRUNCATE(current, 1) from ts_4893.meters order by ts limit 10
|
|
select TRUNC(10.55, 3)
|
|
select TRUNC(10.55, 2)
|
|
select TRUNC(10.55, 1)
|
|
select TRUNC(10.55, 0)
|
|
select TRUNC(10.55, -1)
|
|
select TRUNC(10.55, -10)
|
|
select TRUNC(-10.55, 1)
|
|
select TRUNC(99, 1)
|
|
select TRUNC(10.55, 1) + 1
|
|
select TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(123.123456789, 9), 8), 7), 6), 5), 4), 3)
|
|
select TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(TRUNC(123456789.123456789, -1), -2), -3), -4), -5), -6), -7)
|
|
select TRUNC(87654321.123456789, id) from ts_4893.meters order by ts limit 10
|
|
select TRUNC(current, id) from ts_4893.meters order by ts limit 10
|
|
select TRUNC(current, 1) from ts_4893.meters order by ts limit 10
|
|
select truncate(99.99, 3)
|
|
select truncate(99.99, 2)
|
|
select truncate(99.99, 1)
|
|
select truncate(99.99, 0)
|
|
select truncate(99.99, -1)
|
|
select truncate(99.99, -10)
|
|
select truncate(99, 1)
|
|
select truncate(current, 1) from ts_4893.d0 order by ts limit 10
|
|
select truncate(current, 1) from ts_4893.meters order by ts limit 10
|
|
select truncate(99.99, null)
|
|
select truncate(null, 3)
|
|
select truncate(1.0001, 3)
|
|
select truncate(2.71828, 4)
|
|
select truncate(3.14159, 2)
|
|
select truncate(100.9876, 2)
|
|
select truncate(99999999999999.9999, 2)
|
|
select truncate(-5.678, 2)
|
|
select truncate(voltage, 2) from ts_4893.meters limit 1
|
|
select truncate(current, 1) from ts_4893.meters limit 1
|
|
select truncate(phase, 3) from ts_4893.meters limit 1
|
|
select truncate(voltage + current, 2) from ts_4893.meters limit 1
|
|
select truncate(voltage, -1) from ts_4893.meters limit 1
|
|
select round(truncate(voltage, 1), 2) from ts_4893.meters limit 1
|
|
select truncate(abs(current), 1) from ts_4893.meters limit 1
|
|
select truncate(exp(phase), 2) from ts_4893.meters limit 1
|
|
select truncate(log(current), 1) from ts_4893.meters limit 1
|