Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

FIND_IN_SET() equivalente in SQL Server

Questo potrebbe funzionare

SELECT *
FROM users u
WHERE EXISTS (
    SELECT *
    FROM MainPage
    WHERE CONCAT(',',doctors,',') LIKE CONCAT('%,',u.uid,',%')
        AND Valid = 1
)