以下是我使用FIND_IN_SET检查值" 1"在列#34; DefinedGroup"它将具有逗号分隔值
$q=$this->usermanagement->query("
SELECT momentsdetail.id,
firstname,
lastname,
filepath,
appcreateddate,
senderid
FROM momentsdetail
INNER JOIN users
ON users.id = senderid
INNER JOIN moments
ON moments.id = momentsdetail.momentsid
WHERE momentsdetail.remarks IS NULL
AND Find_in_set('1', definedgroup)
ORDER BY appcreateddate DESC")
错误:
发生数据库错误
错误号码:42000/195
[Microsoft] [SQL Server的ODBC驱动程序11] [SQL Server]' FIND_IN_SET' 不是公认的内置函数名称。