SQL难题
Sql = "Select t1.推广计划,t1.推广单元,t1.关键词,t1.点击率,t2.点击率,t1.点击率-t2.点击率 From [sheet1$] as t1,[sheet2$] as t2 where t1.推广计划=t2.推广计划 and t1.推广单元=t1.推广单元 and t1.关键词 =t2.关键词 and t1.点击率>t2.点击率 order by t1.点击率-t2.点击率 desc"因为点击率是%的形式 VB用ADO读取就出错类型不对。希望能帮忙看看怎么将格式转换可以进行减运算 比如sql中是45%我如果得到 0.45