这段代码有效,我只是想学习如何清理它,这样它就不会跨越很多行,并且 where 语句在几行上就很好而且整洁:
SELECT
case_id, service_type_id
FROM
cases_service_types
WHERE
dbo.cases_service_types.service_type_id = '3'
OR dbo.cases_service_types.service_type_id = '4'
OR dbo.cases_service_types.service_type_id = '5'
OR dbo.cases_service_types.service_type_id = '6'
OR dbo.cases_service_types.service_type_id = '8'
OR dbo.cases_service_types.service_type_id = '9'