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.
我正在创建 dbfit 测试用例,我遇到了一个场景,我需要检查一个项目是否不包含在查询返回的结果中。我怎样才能做到这一点?
谢谢,
如果您执行查询以计算与查询匹配的记录数,那么您可以检查结果是否为零,例如
|query |select count(id) as NumberOfRecords from dbo.tablename where criteria='matched'| |记录数 | |0 |