Hi,
Please help:
[code=mysql]
select *
from v_diff_id_group _type
where id_group = '001' –> color_id from form (char)
[/code]
How can I convert the said query without changing the data type of the ID_GROUP Field (Varhar2).
If a user enters number 1 (instead of 001 for black color), without modifying the above function, it will return multiple records as 1 could mean 001, 00001, 1, etc. So it will read 001, 1, 00001, etc as numbers?
My objective is to keep it as char type then make the query capable of converting it as numeric (opposite of to_char?).
Please help:
[code=mysql]
select *
from v_diff_id_group _type
where id_group = '001' –> color_id from form (char)
[/code]
How can I convert the said query without changing the data type of the ID_GROUP Field (Varhar2).
If a user enters number 1 (instead of 001 for black color), without modifying the above function, it will return multiple records as 1 could mean 001, 00001, 1, etc. So it will read 001, 1, 00001, etc as numbers?
My objective is to keep it as char type then make the query capable of converting it as numeric (opposite of to_char?).
Comment