Select to_date(to_char(date_part('year',current_date),'0000') || trim(to_char(date_part('month',current_date),'00')) || '01','YYYYMMDD')
Run Code Online (Sandbox Code Playgroud)
到目前为止,这是我能想到的最好的方法。
我也无法找到包含所有功能的 Netezza SQL 的综合语言参考,因此请在您的答案中包含一个来源。