Delete a row in a table after an hour it is inserter using sql query

后端 未结 1 1012
花落未央
花落未央 2021-01-17 00:14

Am having table which contain a column called datetime which contain date and time as

\"2013-12-26 09:40:41\".

I want to delete the row wh

相关标签:
1条回答
  • 2021-01-17 00:47

    Use:

    DELETE FROM detail1 WHERE date < DATETIME('NOW', '-1 hours');
    
    0 讨论(0)
提交回复
热议问题