Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SQLデータベースにエラーを常にログに記録し、次の形式のタイムスタンプでログに記録するテーブルがあります
2012-09-05 13:46:59.383
このエラーログから過去48時間だけを取得するにはどうすればよいですか?
これがSql Serverの場合は、試してください
Select * from myLog where datediff(h, myTimestamp, getdate()) < 48