我如何使用之间比较SQL查询 [英] how can i compare sql query using Between

查看:70
本文介绍了我如何使用之间比较SQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在写这样的查询....


从mConfirm中选择Due_date,其中Due_date在(``23-02-2012''和``21-02-2012'')之间


请告诉我我如何纠正它...
它没有运行...

请帮助
谢谢

i m writeing query like this....


select due_date from mConfirm where due_date between (''23-02-2012'' AND ''21-02-2012'')


please tell me how can i corret it...
it is not running...

pls help
thanks

推荐答案

它必须是另一种方式..
it has to be the other way..
select due_date from mConfirm where due_date between '21-02-2012' AND '23-02-2012'


这篇关于我如何使用之间比较SQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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