sql - Matching cells that contain hexadecimal range -


i trying query rows column 1 contains string of pretty random elements. however, last two-three elements of string hexadecimal value or decimal (0-255), like:

               column 1              | column 2 00000587-8bb4-4360-9b0b-79012c14aa6d |  1 00000541-1895-4b13-9de2-7be77dda5de6 |  2 000005db-da97-483d-9efb-69222bbc7b57 |  3 

i need rows column 1 contains string ends hexadecimal values ranging e6 f2 or 0-255

normally use where acc.accountid ilike '%e6' , repeat values in range there has more efficient way?

the hardcore way be:

select * my_table ('x' || substring (col1 length(col1) - 1))::bit(8)::integer    between 50 , 200 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -