SQL> select a.id,level from Type a start with id=5 connect by prior id=small_plates;        ID      LEVEL
---------- ----------
         5          1
         6          2
         7          2
        22          3存储过程
  v_sql:=select * from Type where 动态添加条件
也就是动态把这个语句添加条件把a.id这个查询出来的数据添加到这个sql语句中
添加好后就是这样select * from Type where id=5 or id=6 or id=7 or id=22如果能实现麻烦贴下代码或者例子或者有什么更好的建议也可以提下!只有这么点分!不好意思啊