सिर्फ उदाहरण के लिए:
With DependencedIncidents AS
(
SELECT INC.[RecTime],INC.[SQL] AS [str] FROM
(
SELECT A.[RecTime] As [RecTime],X.[SQL] As [SQL] FROM [EventView] AS A
CROSS JOIN [Incident] AS X
WHERE
patindex('%' + A.[Col] + '%', X.[SQL]) > 0
) AS INC
)
With lalala AS
(
SELECT INC.[RecTime],INC.[SQL] AS [str] FROM
(
SELECT A.[RecTime] As [RecTime],X.[SQL] As [SQL] FROM [EventView] AS A
CROSS JOIN [Incident] AS X
WHERE
patindex('%' + A.[Col] + '%', X.[SQL]) > 0
) AS INC
)
... काम नहीं करता। "त्रुटि पास के साथ"।
इसके अलावा, मैं पहले सेकंड के साथ अंदर का उपयोग करना चाहता हूं। क्या यह वास्तविक है या मुझे अस्थायी तालिकाओं का उपयोग करने की आवश्यकता है?
[ ,...n ]
।