当前位置: 代码迷 >> Sql Server >> sql语句转换 从sqlsever到access中也能使用?解决方法
  详细解决方案

sql语句转换 从sqlsever到access中也能使用?解决方法

热度:99   发布时间:2016-04-27 20:31:10.0
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就行吧.就是函数不同,道理一样呀
  相关解决方案