What Is Trunc in Sql Server
Sql Server Spid – What Is It? » in Oracle There Is a Function (Trunc) Used to Remove the Time Portion of a Date. in Order to Do This with Sql Server, You Need...
SQL Server SPID – What is it? » In Oracle there is a function (trunc) used to remove the time portion of a date. In order to do this with SQL Server, you need to use the convert function. Convert takes 3 parameters, the datatype to convert to, the value to convert, and an optional parameter for the formatting style.
What does Trunc in SQL do?
The TRUNC function replaces the value of its first argument with another value that has a smaller precision or the same precision. The TRUNCATE statement deletes all of the rows from a database table, without dropping the table schema.
Must Read
What is truncate Informatica?
Truncates numbers to a specific digit. You can also use TRUNC to truncate dates.