标签: sql-server oracle
我想知道是否存在差异(除了引擎兼容性和可选出现之外)
CHARINDEX (expressionToFind ,expressionToSearch [, start_location])
和
INSTR (string , substring [, position [, occurrence]])
谢谢。
答案 0 :(得分:1)
用法:INSTR( string1, string2 [, start_position [, nth_appearance ] ] ) 用法:CHARINDEX ( expression1 , expression2 [ , start_location ] ) - Source
用法:INSTR( string1, string2 [, start_position [, nth_appearance ] ] ) 用法:CHARINDEX ( expression1 , expression2 [ , start_location ] )
INSTR( string1, string2 [, start_position [, nth_appearance ] ] )
CHARINDEX ( expression1 , expression2 [ , start_location ] )
- Source
除了运行DBMS的差异外,CHARINDEX与INSTR相同,但nth_appearance除外,CHARINDEX无法使用COM-express设置。
CHARINDEX
INSTR
nth_appearance
COM-express