The user input the following string 2SMD4COMPUTEREH2KLD [free input] what i need is to find the correct id in the table devices
The user input the following string 2SMD4COMPUTEREH2KLD [ 2SMD4COMPUTEREH2KLD ] what i need is to find the correct id in the table in this case Id = 3, in the next iteration the user could input KL2USB3UYDJKWLDK [USB IS INSIDE THE STRING], in this case the id should be = 2
ID | Value |
---|---|
1 | LAPTOP |
2 | USB |
3 | COMPUTER |
4 | MONITOR |
5 | MOUSE |
You could use a dynamic
LIKE
expression:Using the example you gave, the following would be true:
and would return
ID = 2
.