一个SQL语句问题
有一个字符串变量sql,内容为SQL标准SELECT 查询语句,现在通过转换字符串在不改变查询条件情况下,通过变换字符串把此语句转换为SELECT COUNT语句,获取查询语句所查询的条数.例如”select * from table”>>”select count (*) from table” 又例如:”select id from table where id>10 order by id desc”>>”select count(id) from table where id>10”, 需要考虑到各种查询情况