select t.pm_rowid from managementfee t 
where t.pm_rowid not in 
(select a.MFID from monthfeeplan a where a.pm_rowid = 120605)
pm_rowid是managementfee表中的主键,数字型
pm_rowid是monthfeeplan表中的主键,数字型
MFID是monthfeeplan表中的存放managementfee表中以逗号隔开的pm_rowid的字段,字符型(里面的数据格式是:120602,120603,120604,........)
如果单查select a.MFID from monthfeeplan a where a.pm_rowid = 120605
会得到120602,120603
如果单查
select t.pm_rowid from managementfee t 
where t.pm_rowid not in (120602,120603)
会得到相应的记录
但是我这样写的话就会报“ORA-01722,无效数字”~~~~我知道是oralce认成了
select t.pm_rowid from managementfee t where t.pm_rowid not in ('120602,120603')
问题是怎样写才正确?
各位高手帮帮忙~~~~~~~