建 了一张表 id,reportType,reportYear,reportId,reporter
其中id是通过表自动生成,reportType,reportYear,reporter从jsp页面中取得
reportId想通过现在的年份生成,后面加三位数,如 2010001,2010002如此生成,生成的条件是reportType,reportYear,
sql方面的写法是 select count(*) where reportType="一" and reportYear="2010" 读出满足这两条件有几个,再下个ID是加1
有可能意思表达的不太清楚,有人帮帮我吗