how to get today date in YYYYMMDD in firebird

后端 未结 4 1561
情深已故
情深已故 2021-01-25 12:57

how to get today date in YYYYMMDD in firebird, I had a look on following but could not figured how to write this.

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-25 13:43

    This Should work.

    CREATE TABLE tab( t time, d date, ts timestamp );
    INSERT INTO tab(t,d,ts) VALUES ('14:59:23', '2007-12-31', '2007-12-31 14:59');
    
    SELECT CAST(CAST(d as varchar(10)))
    FROM tab;
    

提交回复
热议问题