让其在access中能用:
select f
from @a
where substring(f,(charindex( '[ ',f)+1),(charindex( '] ',f)-1-(charindex( '[ ',f))))= '123 '
------解决方案--------------------
select f
from [Table]
where mid(f,instr(f, '[ ')+1,instr(f, '] ')-1-instr(f, '[ '))= '123 '
------解决方案--------------------
charindex改成instr就行吧.就是函数不同,道理一样呀