回复: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

请您先登陆,再发跟帖!