You mean like this:
CREATE VIEW QTEMP/JTV AS SELECT MYTS, DATE(MYTS) AS MYDATE,
TIME(MYTS) AS MYTIME FROM QTEMP/JT
View JTV created in QTEMP.
INSERT INTO QTEMP/JT VALUES(CURRENT TIMESTAMP)
1 rows inserted in JT in QTEMP.
SELECT * FROM QTEMP/JTV
MYTS MYDATE MYTIME
2014-07-22-09.09.24.819218 2014-07-22 09:09:24

Rob Berendt




Return to Archive home page | Return to MIDRANGE.COM home page