表a
id Name Type
1 asdf 1
2 wef 1
3 wef 1
表b
id CateId
1 2
2 2查询结果
id Name CateId
1 asdf Null
2 wef 2
3 wef Null
select a.*,b.CateId from a left outer join b on b.CateId=a.Id where a.Type<>0为什么这样查询会有空值出现呢,哪位大虾帮忙解下惑呀
id Name Type
1 asdf 1
2 wef 1
3 wef 1
表b
id CateId
1 2
2 2查询结果
id Name CateId
1 asdf Null
2 wef 2
3 wef Null
select a.*,b.CateId from a left outer join b on b.CateId=a.Id where a.Type<>0为什么这样查询会有空值出现呢,哪位大虾帮忙解下惑呀
解决方案 »
- winxp下,c#连接mysql,除了安装MySQLDriverCS,有没有更好的方法?
- MYSQL中为什么调用这个存储过程老是报错啊
- 啥叫 an (automatic) purge operation 呢?
- oracle存储过程中的return,在mysql中用什么方法可以实现
- 为什么order by 不起作用
- Can't open file: 'user.MYD'的解决方法
- Mysql 集群之——启动Sql节点问题
- Mysql 5.6 存儲過程- 遍歷結果集并插入更新
- mysql5.6版本,使用mysqldump导出数据库报错,求助
- 想咨询一下mysql主从模式下可以为从库再做一个从库吗
- 360误报mysqld-nt.exe
- mysql binlog 查找
http://www.jb51.net/article/15386.htm