如何从特定列中获取记录数。
getSqlMapClientTemplate().queryForObject(IS_EXIST_RECORD_ASSIGNMENT_TRANS_MASTER_TABLE, reportId);
我使用的查询如下
SELECT Count(report_id)
FROM (SELECT report_id
FROM m_assign_reports
UNION
SELECT report_id
FROM m_assign_reports_trans)
WHERE report_id = #reportid#