12.07.2015 Views

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

seconds interval is filled in with zeros, and the default date value of '1900–01–01' is supplied.Thus '1:35PM' is converted to '1900–01–01 13:35:00'.The optional style argument is used to specify a date/time format when converting a datetimeor timestamp value to a string. By specifying various style codes you can return a dates andtimes in a variety of different formats. The available style codes are 0 through 14 (100 through114), 20 & 21 (120 & 121), 126, 130, and 131. The default style is 120:yyyy-mm-dd hh:mm:ssSee CAST.4.1.8 CURRENT_TIMESTAMPCURRENT_TIMESTAMPReturns the current local date and time in the following format:yyyy-mm-dd hh:mm:ssTime is specified using a 24-hour clock, Fractional seconds are not returned.Note that no parentheses are used with this function.4.1.9 CURRENT_USERCURRENT_USERReturns the name of the current user.Note that no parentheses are used with this function.4.1.10 DATALENGTHDATALENGTH(expression)Supported FunctionsReturns an integer specifying the number of bytes used to represent expression. Thus 'fred'returns 4, and +007.500 returns 3.<strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong> 29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!