Select 数一数

Select 数一数,select,count,Select,Count,我对此有意见 select * from contract_detail where contract=264127 and StartDate >='2014-01-13'; 我想从第264127号合同到第264221号合同中选择具体合同,具体日期为2014-01-13以后?试试看 select * from contract_detail where contract >= 264127 and contract <= 264221 and StartDate >

我对此有意见

select * 
from contract_detail
where contract=264127 
and StartDate >='2014-01-13';
我想从第264127号合同到第264221号合同中选择具体合同,具体日期为2014-01-13以后?

试试看

select * from contract_detail where contract >= 264127 and contract <= 264221 and StartDate >='2014-01-13';

从合同详情中选择*,其中合同>=264127和合同='2014-01-13';

它不起作用。我只需要查看合同264127至264221和规定的日期。它还显示了旧数据/合同从合同详细信息中选择*,其中合同>=264127和合同<264221和起始日期>='2014-01-13';我去掉了那个标志。现在我可以看到他们了。谢谢很高兴你得到了你想要的。正如您所知,<264221不包括带有合同264221的合同。希望那是你的意图?