|
sql="select APPLY_DEPARTMENT,MAJOR_IDEA,IT_UNDERTAKER,TOTESTTIME,RequireDate,AnalysDate,CodeDate,TestDate,FINISH_TIME,max(EstiTime) as (EstiTime) from songzw.REQUIRE_BILL inner join REQUIRE_ESTI on songzw.REQUIRE_BILL.IT_NO=REQUIRE_ESTI.IT_NO where 1=1"这个是什么????
sql="select APPLY_DEPARTMENT,MAJOR_IDEA,IT_UNDERTAKER,TOTESTTIME,RequireDate,AnalysDate,CodeDate,TestDate,FINISH_TIME,max(EstiTime) as (EstiTime)
From REQUIRE_BILL RB,REQUIRE_ESTI RB
Where RB.IT_NO=RE.IT_NO
这样试一下...不过因为你没用创建主/外键...有可能出现笛卡儿积现象.... |
|