IF NOT EXISTS (SELECT 0 FROM [train_enroll_data] WHERE [courseId] = 636235546473141211)
BEGIN
SELECT CAST(1 AS BIT)
END
ELSE
BEGIN
SELECT CAST(0 AS BIT)
END
SQL判断查询结果是否存在EXISTS
最新推荐文章于 2024-10-04 07:00:00 发布