to_date() 関数は、日付文字列を日付型に変換する。 特定日の3日後を計算して文字型に変換 select to_char(to_date('20060830', 'YYYYMMDD') + 3, 'yyyy/mm/dd'); ⇒ 2006/09/02 '20060830' の引数部分は テーブルのカラム名を入れてもよい。 ▼日時カラムの形式が「YYYY-MM-DD HH:MM:SS」の時、「YYYY-MM-DD」で検索したい
to_date() 関数は、日付文字列を日付型に変換する。 特定日の3日後を計算して文字型に変換 select to_char(to_date('20060830', 'YYYYMMDD') + 3, 'yyyy/mm/dd'); ⇒ 2006/09/02 '20060830' の引数部分は テーブルのカラム名を入れてもよい。 ▼日時カラムの形式が「YYYY-MM-DD HH:MM:SS」の時、「YYYY-MM-DD」で検索したい
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く