Leading Value [message #267365] |
Thu, 13 September 2007 02:00 |
Power Penguin
Messages: 33 Registered: April 2007 Location: Australia
|
Member |
|
|
Hi guys
Im using Oracle 10g and I am new and was wondering how I can set the field to have a letter that appears in front of a number that can be entered each time so that C is automatically there and the user dont have to type it in only the number eg.
C: 555555
Any help would be greatly appreciated thanks!
|
|
|
|
|
|
|
|
|
|
Re: Leading Value [message #267630 is a reply to message #267599] |
Fri, 14 September 2007 00:16 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
Think twice before implementing this. If you already thought twice, think again.
Why would you want to store this constant in the same column as the number? If the code is the same for all records, there is no point in storing it, you could simply add it when you display it; if it differs for the distinct parts of your application, store it in a separate column.
This way, you can filter on the prefix much easier.
This is what Littlefoot also told you, but I am afraid you might have read over it in the excitement of getting a 'solution'.
|
|
|