2009年11月24日 星期二

Trunc

Oracle

select trunc(1.3)from dual

SQL Server

select cast(1.3 as int)

結果相同.

沒有留言:

張貼留言