I have a firebird database and I'm trying to do something. When i try this command it's not working.
echo DELETE FROM TXN WHERE SALESBEGIN < current_date - 2;" | isql -u sysdba -p masterkey localhost:C:\aaa.fdb
The SALESBEGIN
column is of type DATETIME
but when i delete "<" operator its working. How can i fix it? This is output;
C:\Program Files (x86)\Firebird\Firebird_2_0\bin>echo "DELETE FROM TXN
WHERE SALESBEGIN < current_date - 2;" | isql -u sysdba -p masterkey
localhost:C:\aaa.fdb
Database: localhost:C:\aaa.fdb, User: sysdba
SQL> CON> Expected end of statement, encountered EOF