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.
我想要 mmddyyhhmin 中的日期格式。任何人都可以帮助我实现这一目标。例如:对于GETDATE结果应该是“032520130550”
尝试这个:
select str_replace(convert(varchar,getdate(),101),'/',null)+str_replace(convert(char(5),getdate(),108),':',null)