if Query1.RecordCount=0 then showmessage('没有返回值')
else showmessage(InttoStr(Query1.RecordCount));