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.
我从表中得到数据。表中有一个datetime字段。字段名称是createdon
datetime
createdon
在选择查询中,我传递了两个日期时间参数现在我想要createdon字段不等于这两个日期时间参数的表中的所有数据。
字面解释。
SELECT * FROM TBL WHERE createdon NOT IN (@date1, @date2);