简体   繁体   English

sys.time_zone_info 在 SQL 服务器中

[英]sys.time_zone_info In SQL SERVER

There is any place where i got all the timezone name with time zone code?有什么地方我得到了所有带有时区代码的时区名称? Timezone name =Pacific Standard Time,code = PST时区名称 = 太平洋标准时间,代码 = PST

you can make the code by using case when i am just create for two you can do by yourself rest当我只为两个创建时,您可以使用案例制作代码,您可以自己完成 rest

SELECT case [name] when 'Easter Island Standard Time' 
                   then 'EST'
                  when 'Canada Central Standard Time' then 'CST'
                  when '' then '' end FROM sys.time_zone_info

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM