I want to truncate
some records from a table with date time clause.
This link have a solution, but it's not working for me.
TRUNCATE TABLE 'meter_to_sim_mapping' WHERE 'meter_to_sim_mapping'.'mapped_at' <=
In above where clause I want to add the date time value. The value is 2018-04-02 16:03:52
. The query should delete all the records prior to this date.
How can I truncate the table with date-time?
Any help would be highly appreciated.