try:
querystr='select a.name from (select b.name from test b) a '

解决方案 »

  1.   

    在Eclipse中是一定要用as的,刚才已经试了好几种写法,都不行。怀疑是Eclipse不支持select ..from (select ..)这种写法,但我的程序只有这种写法才能统计啊
      

  2.   

    但用insert into ... as select ...的时候也要用到上面的格式啊,你的意思是怎么操作呢?先谢谢
      

  3.   

    querystr1='insert into temp as select b.name from test as b'
    querystr2='select a.name from temp as a'