์ซ์ ๋ณ์์์ ๊ฐ์ฅ ๊ฐ๊น์ด int๋ฅผ ๋ฐํํ๋ round() ํจ์๊ฐ ์๋ ๊ฒ์ ๋ณด์์ต๋๋ค.
๊ทธ๋ฌ๋ x ์ญ์ง์๋ก ์ซ์ ๊ฐ์ ๋ฐํํ๋ round(x) ํจ์๋ ์์ต๋๋ค.
์๋ฅผ ๋ค์ด:
select round(192.4525, 2) -> 192.46
select round(2.3246, 2) -> 2.32
์ฌ๊ธฐ ์ผ๋ถ ๋ฌธ์:
http://www.postgresql.org/docs/9.1/static/functions-math.html
์ด๊ฒ์ ๋ค๋ฅธ SQL ๋ฐฉ์ธ์์ ์ผ๋ง๋ ์ ์ง์๋ฉ๋๊น?
MySql์๋ ๋์ผํ ๊ธฐ๋ฅ์ด ์์ต๋๋ค.
http://dev.mysql.com/doc/refman/5.0/fr/mathematical-functions.html
๋ํ Oracle์์:
http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions135.htm
MathExpressions
์ ์ถ๊ฐ๋จ
3.2.2์์ ์ถ์๋จ
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
MathExpressions
์ ์ถ๊ฐ๋จ