回答編集履歴
1
追記
test
CHANGED
@@ -1,3 +1,7 @@
|
|
1
1
|
[SQL文字列関数と演算子](https://www.postgresql.jp/document/9.2/html/functions-string.html)
|
2
2
|
|
3
3
|
の substring で1桁目から8桁を取り出して to_dateします。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
select to_date(substring('20180417T051318400' from 1 for 8), 'yyyymmdd') as date1 from ...
|