-1
我有這個問題。選擇和計數
select *
from contract_detail
where contract=264127
and StartDate >='2014-01-13';
我想從合同no.264127到具體日期2014-01-13以後選擇具體合同到264221?
我有這個問題。選擇和計數
select *
from contract_detail
where contract=264127
and StartDate >='2014-01-13';
我想從合同no.264127到具體日期2014-01-13以後選擇具體合同到264221?
嘗試
select * from contract_detail where contract >= 264127 and contract <= 264221 and StartDate >='2014-01-13';
它沒有工作。我只需要查看合同264127至264221和日期如上所述。它還向我顯示舊數據/合同 – user3179264
select * from contract_detail where contract> = 264127 and contract <264221 and StartDate> ='2014-01-13';我刪除了=號。現在我可以看到他們。謝謝! – user3179264
很高興你有你想要的。只是你知道,<264221不包括合同#264221的合同。希望這是你的意圖嗎? –