回複:sql 問題,等達人,高手,前輩.

Oracle 裏可以這樣寫,不考慮performance阿

select a.*

from a, account b

where instr(a.accountinfo, b.accountnum) > 0

所有跟帖: 

Oracle的instr和SQLSvr的charindex都可以,用like的話還要有% -glassfish- 給 glassfish 發送悄悄話 (0 bytes) () 03/10/2011 postreply 02:14:45

不及格,沒加 DISTINCT!!! -HUDIEMI- 給 HUDIEMI 發送悄悄話 (0 bytes) () 03/10/2011 postreply 19:56:53

請您先登陸,再發跟帖!