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.
我有一个表,其中包含一行值 String datetime() 和一个 id(以及更多)。
现在我想更新 WHERE id = xx 并且仅当 my.Datatime 比存储的日期时间更新时。我怎样才能做到这一点?谢谢
如果“你的日期时间”是 '2012-12-12',那么
WHERE id = xx and '2012-12-12' > Datatime