------解决方案-------------------- sql2 = "select gzmc,id from LbGzxxb where gzmc<>'' order by id asc";
------解决方案-------------------- id不为空吧? 如果gzmc可能为空的话,过滤一下就好了 sql2 = "select gzmc,id from LbGzxxb where gzmc<>'' or gzmc<>null order by id asc";
------解决方案-------------------- +++,在取数据的时候把空的去掉