Cách thay đổi định ...
 
Notifications
Clear all

Cách thay đổi định dạng ngày thành YYYY/MM/DD trong SAP HANA

1 Posts
1 Users
0 Likes
363 Views
admin
Posts: 336
Admin
Topic starter
(@admin)
Prominent Member
Joined: 3 years ago
select to_nvarchar(current_date,'YYYY/MM/DD') "DateFormat" from dummy;

Link tham khảo

  TO_NVARCHAR ( [, ]) If the specifier is omitted, then the conversion is performed using the date format model. The following data types can be converted to NVARCHAR using the TO_NVARCHAR function: ALPHANUM, BIGINT, DATE, DECIMAL, DOUBLE, FIXED12, FIXED16, FIXED8, INTEGER, REAL, SECONDDATE, SMALLDECIMAL, SMALLINT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR, CLOB, NCLOB, TEXT (if the value is longer than the maximum length of NVARCHAR, then an exception is thrown)
Reply
Share:
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security