Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的查询
SELECT Fullname, rank, id_no, TIN, birthdate, hair, eyes, Blood, height, weight, marks, name, address FROM [******_DOMAIN\****_*****].*******view
我想将 dateformat 默认值从 更改yyyymmdd为mm/dd/yyyy,但我在编写更改 dateformat 的正确脚本时遇到了困难。
yyyymmdd
mm/dd/yyyy
提前致谢
用这个
select CONVERT(VARCHAR,dateColumn,101) from your TableName
这里的第三个参数可以是任何支持的格式数字。
欲了解更多信息,请转到此处