how to get today date in YYYYMMDD in firebird
问题 how to get today date in YYYYMMDD in firebird, I had a look on following but could not figured how to write this. 回答1: I think you can do: select replace(cast(cast('Now' as date) as varchar(10)), '-', '') from rdb$database 回答2: This is a fully version (in Integer) select Extract(year FROM cast('NOW' as date))*10000 + Extract(month FROM cast('NOW' as date))*100 + Extract(day FROM cast('NOW' as date)) from rdb$database This is a fully version (in VARCHAR) select CAST(Extract(year FROM cast('NOW