我有一個表[JsonTable],列[JsonData]保存JSON字符串, JsonData像: {
"Names": ["John", "Joe", "Sam"]
}
我怎樣才能內加入這個表所示: SELECT* FROM [TestTable] AS T
INNER JOIN [JsonTable] AS J ON T.[Name] IN JSON_QUERY(J.[Jso
SELECT
categories.id, categories.name
AS
parentName
FROM
categories
INNER JOIN
categories
ON
categories.parent = categories.id
ORDER BY
id
DESC
我想在同一個表(類別)內部連接兩列。