How can I query 'between' numeric data on a not numeric field?

后端 未结 4 486
别那么骄傲
别那么骄傲 2021-01-18 04:25

I\'ve got a query that I\'ve just found in the database that is failing causing a report to fall over. The basic gist of the query:

Select *
From table
Wher         


        
4条回答
  •  没有蜡笔的小新
    2021-01-18 04:40

    Not sure if this helps you, but I did read somewhere that incorrect conversion using CONVERT will always generate error in SQL. So I think it would be better to use CASE in where clause to avoid having CONVERT to run on all rows

提交回复
热议问题