开发者

SQL: Regular Expressions `

开发者 https://www.devze.com 2023-02-03 00:54 出处:网络
I need to have a sql rexeg pattern that matches any number between 42.67 and 42.86 This is what i Have, but I am not sure if its working

I need to have a sql rexeg pattern that matches any number between 42.67 and 42.86

This is what i Have, but I am not sure if its working

42\.[6-9][0-6]

Can anyone help ? Thanks !!

I开发者_开发知识库 am using an analytics program that only accepts sql regex i do not have access to the db to run queries against it.


Try this:

42\.(6[7-9]|7[0-9]|8[0-6])


Why do you need a regex? Just select column from table where column>=42.67 and column<=42.86;

0

精彩评论

暂无评论...
验证码 换一张
取 消