Field column setting [message #597053] |
Mon, 30 September 2013 11:18  |
 |
cam15
Messages: 4 Registered: September 2013 Location: Phoenix
|
Junior Member |
|
|
Hello All,
I am currently working on a bug that came from a user. An oracle form is used for entering employee information and the backend table is employees. One for the field here is LAN ID. It was found that some users were using space bar either before or after entering the Lan id and this is causing issues in finding the employees in the system. A request is being submitted to not let any blanks or space to be entered in the field. In the table, this particular field/column datatype is varchar2 and the size is 8.
Could any of you please help me with this issue. How do I make no blanks or spaces to be entered in the field or otherwise, even if they put a space or blank, the field should only use the actual ID entered.. Is it possible?? Kindly advise.
thanks,
Nick
|
|
|
|
|
|
|
Re: Field column setting [message #597192 is a reply to message #597090] |
Tue, 01 October 2013 08:45   |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
DrabJay wrote on Mon, 30 September 2013 17:28
Update the table to remove all spaces from the existing values in the lan id column.
UPDATE your_table
SET lan_id = regexp_replace(lan_id, '[[:space:]]*','');
Good one DrabJay, but...the way I read it, users are not putting spaces in the middle of values, but that is only my interpretation.
However, your case would take care of all spaces, which surely looks better. Again though, what if spaces all allowed in the middle of values. OP didn't mention that.
|
|
|
|
|
|
|