rsa=stmt.executeQuery("select sj from js where xh='"+xh+"'");
while(rsa.next())
{
rsa.get*** ("sj"); 这句怎么得到DATETIME类型的数据SJ呢?不会是GETDATE吧...
if(jss!=0)
{
ResultSet sqlp="SELECT DATEDIFF(day,'sj',getdate()) AS jssj";
rsb=stmt.executeQuery(sqlq);
if(rsb.getInt("jssj")>30) 麻烦顺便看下其他语句有没有错