select
       t.*
        ,b.jyrq,b.jyqd,b.xzbz,b.jyje,b.jdfx,b.ye,b.dfzh,b.dfhm
        from t_account_result t inner join t_notice n ON n.tzdbh = t.tzdbh
        INNER JOIN t_everyday_bank_bill b ON b.lsh = t.yhlsh
        where t.jzrq LIKE CONCAT('2022-05-10','%') 

 

ERROR:  operator does not exist: timestamp without time zone ~~ text

LINE 7:     where t.jzrq LIKE CONCAT('2022-05-10','%')

                         ^

HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.

解决办法:

select
       t.*
        ,b.jyrq,b.jyqd,b.xzbz,b.jyje,b.jdfx,b.ye,b.dfzh,b.dfhm
        from t_account_result t inner join t_notice n ON n.tzdbh = t.tzdbh
        INNER JOIN t_everyday_bank_bill b ON b.lsh = t.yhlsh
        where  (TO_CHAR(t.jzrq, 'yyyy-MM-dd') LIKE CONCAT('2022-05-10'::date,'%'))

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐