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.
正如标题所说,我想要一些类似的东西:
SELECT * FROM TABLE WHERE YEAR BETWEEN 2011 AND 2005;
这里有什么帮助吗?
linq中没有BETWEEN语法。所以你可能不得不使用这样的东西:
BETWEEN
var result=( from t in db.TABLE where t.YEAR>=2005 && t.YEAR=<2011 select t );
其中 db 是 linq 数据上下文
我不知道BETWEENsql 中的命令,但你总是可以做类似的事情
where year >= 2005 AND year <= 2011