gpt4 book ai didi

sql-server - INSTR() 和 CHARINDEX() 之间有什么区别吗?

转载 作者:行者123 更新时间:2023-12-02 01:18:26 25 4
gpt4 key购买 nike

我想知道

之间是否存在差异(除了引擎兼容性和可选事件)
CHARINDEX (expressionToFind ,expressionToSearch [, start_location])

INSTR (string , substring [, position [, occurrence]])

谢谢。

最佳答案

Usage: INSTR( string1, string2 [, start_position [, nth_appearance ] ] )
Usage: CHARINDEX ( expression1 , expression2 [ , start_location ] )

- Source

除了DBMS的区别它运行时,CHARINDEXINSTR 相同,除了不能使用 CHARINDEX 设置的 nth_appearance

关于sql-server - INSTR() 和 CHARINDEX() 之间有什么区别吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41509391/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com