问题
I have a simply but fror me unsolveable question
I have this request:
Firebird Select Field From Table where Field = current_date
The problem is that this field is a text field an holds date in this format: 25.04.2014
How can i convert it that this questions works if it is the current date.
回答1:
SELECT fields FROM table WHERE field=
substring(100+extract(day from current_date) from 2 for 2)
|| '.' ||
substring(100+extract(month from current_date) from 2 for 2)
|| '.' ||
extract(year from current_date)
来源:https://stackoverflow.com/questions/23145974/firebird-select-field-from-table-where-field-current-date