Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么实现exists #112

Open
xgfzxy opened this issue Feb 10, 2025 · 0 comments
Open

怎么实现exists #112

xgfzxy opened this issue Feb 10, 2025 · 0 comments

Comments

@xgfzxy
Copy link

xgfzxy commented Feb 10, 2025

select t.* from
mr_case_patient t where 1=1 and exists (select 1 from mr_case_diagnose --诊断表
where DISEASE--诊断名称
like 'A41.0%' and visit_id = t.visit_id )

大佬,我要以诊断名称来查,是不是只能通过自定义sql来了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant