You have a real problem with your data model. date
s should be stored using the appropriate date/time type, not as strings.
You can convert to a date for the join
, using:
select to_date(t1.date, 'YYYY-MM-DD'), t1.col1, t2.col2
from table1 t1 join
table2 t2
on to_date(t1.date, 'YYYY-MM-DD') = to_date(t2.date, 'DD.MM.YYYY')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…