select * from View_Change where Wname='AAAA'
select * from View_Change where Updatetime>'2007-10-13'
下面是統計
select Wno,Count(Wnum) as 統計 from View_Change where Updatetime>'2007-10-13' group by Wno
如果改為復雜點點的統計的話
select Wno,Count(Wnum) as 統計 from View_Change where Updatetime>='2008-01-01' and Updatetime<'2009-01-01' and Wno=1 and Type='出庫' group by Wno
ftp://220.184.188.33/ 裏面的幾個文檔案就是創建的過程 我也好久沒做過了 都忘記了 大部分都是企業管理器內做的