سؤال

I have got data from table. There is one datetime field in table. Field name is createdon

In select query I pass two datetime parameters Now I want all data from table where createdon field is not equals to these two date time parameters.

هل كانت مفيدة؟

المحلول

A literal interpretation.

SELECT *
  FROM TBL
 WHERE createdon NOT IN (@date1, @date2);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top