理解查询中的问题 [英] problem in understanding query

查看:69
本文介绍了理解查询中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!

请告诉我0.0和0在下面的查询中表示什么.我用谷歌搜索,但找不到答案.


Hi all !!!

please tell me what does 0.0 and 0 signifies in the below query. I googled it but was unable to find the answer.


"Select 0.0 gpf_Contribution, 0.0 Advance_return, 0.0 Total, 0.0 Advance_return_amt, 0.0 progressive, 0 month_num where 1=2"

推荐答案

HI,

该查询将给出任何结果,因为您的where条件永远不会变为 TRUE .

如果删除 where 条件,您将得到以下结果.



This query will NOT give any result, as your where condition never become TRUE.

If you remove your where condition you will get the following result.

gpf_Contribution Advance_return  Total  Advance_return_amt   progressive  month_num
   0.0               0.0          0.0       0.0                 0.0           0    



希望您一切都好.

问候
塞巴斯蒂安



I hope you are clear.

Regards
Sebastian


这篇关于理解查询中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆