I have a DB with multiple columns. In it a column 'Datum'.
Unfortunately I entered the wrong date format, dd.MM.yyyy.
So my data looks like this:
02.02.2017
12.12.2016
08.01.2015
etc.
I want to start with a command, e.g. delete all data from 2016 and older.
Have already tried this command:
SQL_DB.ExecNonQuery ("Delete from Rechnungen where year (Datum) <= '" 2016' ")
Unfortunately, not, year is reported as an error.
Does somebody has any idea ?
Unfortunately I entered the wrong date format, dd.MM.yyyy.
So my data looks like this:
02.02.2017
12.12.2016
08.01.2015
etc.
I want to start with a command, e.g. delete all data from 2016 and older.
Have already tried this command:
SQL_DB.ExecNonQuery ("Delete from Rechnungen where year (Datum) <= '" 2016' ")
Unfortunately, not, year is reported as an error.
Does somebody has any idea ?