I want to search question no. which can be 1, 1a, 1b, 2, 2c, 11. How can I to search 1 getting 1, 1a, 1b but not 11. And if I search 1b, only 1b comes out. Is there any function helps?
using mysql
DATA:
id |question |q_no.
1 |XX |1
2 |ABC |1a
3 |ED |1c
1 |CD |11
Desired sets:
when searching "1":
1 |XX |1
2 |ABC |1a
3 |ED |1c
when searching "1a":
2 |ABC |1a
sorry for being late
LIKEwhere clause in the sql command the function will create. Than call the function with the desired parameters: `do_sql "1b"``. Or explain what you really want and what you have tried.