create database test --±í1 create table tb1 ( tId int, tTime datetime primary key(tId,tTime), tWaterLevel decimal --ˮλ ) --±í2 create table model ( m_tId int, m_wwl decimal,--¾¯½äˮλ m_ewl decimal,--±£Ö¤Ë®Î» )
insert into tb1(tId,tTime,tWaterLevel) select 1,'2010-4-14 8:09:20',2 union all select 1,'2010-4-14 18:09:20',2 union all select 2,'2010-4-14 18:49:20',3 union all select 3,'2010-4-14 18:49:20',4
insert into model(m_tId,m_wwl,m_ewl) select 1,1,0.8 union all select 2,2,1.8 union all select 3,5,3
select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......