📄 18602.html
字号:
<html> <head> <title>这个SQL查询可以改善吗?</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>这个SQL查询可以改善吗?</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by kkcheung on September 07, 1999 at 17:54:38:<p>select sum(receive_rec.weight),sum(receive_rec.amount),sum(sale_rec.weight),sum(sale_rec.amount) from sale_rec,receive_rec where sale_date='19990907' and sale_rec.send_code='GZH' and receive_rec.in_date='19990907' and receive_rec.send_code='GZH'<p>上面的加总如果其一没有结果,会令其他的也查不出来,以怎样修改令查询到没有资料时,可以显示一个零,而不影响其<br>他有数据的.先谢谢大家.<br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 18602--><!--top: 18616--><li><a href="18616.html">Re: 这个SQL查询可以改善吗?</a> <b>SQL</b> <i>01:47:08 9/08/99</i>(<!--responses: 18616-->2)<ul><!--insert: 18616--><!--top: 18631--><li><a href="18631.html">我这个SQL的意思是..........</a> <b>kkcheung</b> <i>09:10:17 9/08/99</i>(<!--responses: 18631-->1)<ul><!--insert: 18631--><!--top: 18679--><li><a href="18679.html">这本就是and的结果!!</a> <b>SQL</b> <i>22:27:15 9/08/99</i>(<!--responses: 18679-->0)<ul><!--insert: 18679--></ul><!--end: 18679--></ul><!--end: 18631--></ul><!--end: 18616--></ul><!--end: 18602--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -