![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Guys, DB2 LUW V9.5 Fp5. There is another issue that needs a high performance solution. I have a class A, B or C range. For example, 10.*, 10.1.* or 10.1.3.* I want to determine whether an IP address (modeled as an Integer in the DB) belongs to a given Class (which is a string). This function should return True/False. One possible solution is to create a function that compares each of the octets available on the Class Range, and match them with the IP address octets. Is there a better approach for this problem? Performance is crucial and I need to avoid heavy UDFs. |
![]() |
| Thread Tools | |
| Display Modes | |
| |