日期:2014-05-17 浏览次数:20978 次
SQL> SELECT * FROM T; ID PUBDEPTID --------------------------------------- -------------------------------------------- 1001 101,1011,1012,1033 1002 101 1003 102,1014,1015,1006 1004 2101,3101 SQL> SELECT * FROM T WHERE INSTR(','||PUBDEPTID||',',',101,')>0; ID PUBDEPTID --------------------------------------- -------------------------------------------- 1001 101,1011,1012,1033 1002 101