我嘗試在SQL Server 2016上運行需要從Mysql鏈接數據庫獲取數據的查詢。 SELECT o.*, name
FROM [DBS].[dbo].[Users] AS o WITH (NOLOCK)
CROSS APPLY (SELECT b.code FROM users.members b WHERE name = 'name') ou name
WHERE b.dat
我有一個包含進入和退出事件的EVENT表。我計算工作時間與步驟: SET @worktime = (SELECT SUM(mins)
FROM
(SELECT
entry.EmployeeId, entry.DateTime AS EntryDateTime,
[exit].DateTime AS ExitDateTim