2009-10-15 35 views

回答

1

應該有datefield> = textfield :: date。 我認爲會比較兩個日期字段不是兩個文本字段,所以datefield :: text> = textfield將是錯誤的。

0

CAST函數幫助過:

cast(date_trunc('year', current_date) as text)