我是这么写的,但不成功
sqlstr = "select * from xt_mkb where supper="+nodeID+" and id in (select id from xt_mkb where userid="+userID+" and js=2)"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where userid="+userID+" and js=3)"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where id in (select supper from xt_mkb where userid="+userID+" and js=4))"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where userid="+userID+" and js=5)))"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper* from xt_mkb where userid="+userID+" and js=6))))"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where userid="+userID+" and js=7)))))"+
"union"+
"select * from xt_mkb where supper="+nodeID+" and id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where id in (select supper from xt_mkb where userid="+userID+" and js=8))))))"