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.
私は SQL にかなり慣れていないので、2003-05-07T00:00:00+02:00 のように書式設定された日付を持つ列から年を抽出する必要があります。年だけで新しい列を作成したいと思います。
私はそれが EXTRACT() ステートメントであると想定していますが、その後行き詰まっています。
SELECT time_stamp_column FROM table_name EXTRACT YEAR(time_stamp_column) INTO new_column
助言がありますか?