Home > Database > Mysql Tutorial > select-mysql 嵌套查询,一个表的多个字段 作为另一个表的条件,若为空输出0,求高手

select-mysql 嵌套查询,一个表的多个字段 作为另一个表的条件,若为空输出0,求高手

WBOY
Release: 2016-06-06 09:34:35
Original
1060 people have browsed it

selectmysqlsql

SELECT daan
FROM 表A a,表B a
WHERE daan=b.选项1 or daan =b.选项2

问题来了
若 从表A 查 表B的选项,daan为空,怎么输出0

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template