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 语句中打印日期,但我需要在输出中添加一个字母:
to_char(date_updated, 'YYYY-MM-DDTHH:mm:ss')
Oracle 不喜欢 T。我只想像冒号和破折号一样输出 T。我可以用反斜杠或其他什么来逃避它吗?
你只需要在它周围加上双引号:
to_char(date_updated, 'YYYY-MM-DD"T"HH:mm:ss')