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.
2014 年 5 月 8 日をこの形式 08/05/2014 に変換する必要があります。
私は使用してみました:
convert(char(12),"May 8 2014",103)
しかし、うまくいきませんでした。
回避策をお勧めします。
文字列を日時に変換してみてください。以下のように文字に変換する必要があります。
select convert(char(12),cast("May 8 2014" as datetime) ,103)
同じアプローチの別の実装、つまり、最初に日時に変換します。
select convert(char(12),convert(datetime,"2014 年 5 月 8 日") ,103)