任何人都可以幫助我將這個SQL語句轉換成MySQL,因爲當我試圖從MySQL運行它時出現語法錯誤。從SQL到MySQL的查詢
SELECT
a.userid,
CAST(a.checktime AS VARCHAR) AS timein,
ISNULL(CAST(b.checktime AS VARCHAR),'NO TIMEOUT') AS timeout
FROM timein a
LEFT JOIN timeout b ON a.userid = b.userid
WHERE ISNULL(CAST(b.checktime),'NO TIMEOUT') = 'NO TIMEOUT'
更換'ISNULL'通過'IFNULL' – 1000111
添加錯誤消息請 – Jens