--
SET DateStyle TO 'US,Postgres';
SHOW DateStyle;
- DateStyle
---------------------------------------------
- Postgres with US (NonEuropean) conventions
+ DateStyle
+--------------
+ Postgres, US
(1 row)
SELECT '' AS "64", d1 AS us_postgres FROM TIMESTAMP_TBL;
SET DateStyle TO 'US,SQL';
SHOW DateStyle;
- DateStyle
----------------------------------------
- SQL with US (NonEuropean) conventions
+ DateStyle
+-----------
+ SQL, US
(1 row)
SELECT '' AS "64", d1 AS us_sql FROM TIMESTAMP_TBL;
SET DateStyle TO 'European,Postgres';
SHOW DateStyle;
- DateStyle
-------------------------------------
- Postgres with European conventions
+ DateStyle
+--------------------
+ Postgres, European
(1 row)
INSERT INTO TIMESTAMP_TBL VALUES('13/06/1957');
SET DateStyle TO 'European,ISO';
SHOW DateStyle;
- DateStyle
--------------------------------
- ISO with European conventions
+ DateStyle
+---------------
+ ISO, European
(1 row)
SELECT '' AS "65", d1 AS european_iso FROM TIMESTAMP_TBL;
SET DateStyle TO 'European,SQL';
SHOW DateStyle;
- DateStyle
--------------------------------
- SQL with European conventions
+ DateStyle
+---------------
+ SQL, European
(1 row)
SELECT '' AS "65", d1 AS european_sql FROM TIMESTAMP_TBL;