日期:2014-05-19  浏览次数:20429 次

sql语句转换 从sqlsever到access中也能使用?
让其在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就行吧.就是函数不同,道理一样呀