M
madm
Unregistered / Unconfirmed
GUEST, unregistred user!
如果有两个表 A B
table A
FA1 FA2
1 DFS
2 SDFS
3 SDF
4 SDF1
5 WRDFG
6 SDFDF
table B
FB1 FB2
1 12312
5 2323
6 23
用 SELECT A.FA1,A.FA2,B.FB2 FROM A LEFT OUTER JOIN B ON FB1 = FA1
将得到
FA1 FA2 FB2
1 DFS 12312
2 SDFS NULL
3 SDF NULL
4 SDF1 NULL
5 WRDFG 2323
6 SDFDF 23
但我想得到
FA1 FA2 FB2
1 DFS 12312
2 SDFS 0
3 SDF 0
4 SDF1 0
5 WRDFG 2323
6 SDFDF 23
300分讨教如何实现NULL的替换?
(我用的是INTERBASE6。0)
table A
FA1 FA2
1 DFS
2 SDFS
3 SDF
4 SDF1
5 WRDFG
6 SDFDF
table B
FB1 FB2
1 12312
5 2323
6 23
用 SELECT A.FA1,A.FA2,B.FB2 FROM A LEFT OUTER JOIN B ON FB1 = FA1
将得到
FA1 FA2 FB2
1 DFS 12312
2 SDFS NULL
3 SDF NULL
4 SDF1 NULL
5 WRDFG 2323
6 SDFDF 23
但我想得到
FA1 FA2 FB2
1 DFS 12312
2 SDFS 0
3 SDF 0
4 SDF1 0
5 WRDFG 2323
6 SDFDF 23
300分讨教如何实现NULL的替换?
(我用的是INTERBASE6。0)