mysql 搜索多个结果

 

SELECT
(select  vlu from dept_1 d 
where dname='n' and loc='n') AS res1,
(select  vlu from dept_1 d 
where dname='y' and loc='y') AS res2;

 

posted @ 2023-11-26 20:48  胖豆芽  阅读(6)  评论(0编辑  收藏  举报