我正在Postgresql中try CHARINDEX
个.但它说:
function CHARINDEX() does not exist
如果postgresql中不存在这样的内置函数,那么是否有任何函数可以替代charindex?
我正在Postgresql中try CHARINDEX
个.但它说:
function CHARINDEX() does not exist
如果postgresql中不存在这样的内置函数,那么是否有任何函数可以替代charindex?
postgresql中的等效函数是:
strpos(string, substring)
或者:
position(substring in string)
它们是等价的,只是参数的顺序不同.
你可以在:https://www.postgresql.org/docs/current/functions-string.html中找到它们