Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Search and replace query and search query
Hi List,
I have a couple of queries to be written in SQL:
I have a table with the values as SK 05100 and LH 07244. I have to update these values with SK5100 and LH7244. That means I have to remove the white space in the 3rd position and the 0 in the fourth position. How do I do this?
I have a table with a column as weekdays with datatype as number(7)
and the values can be any value from 1-7. For example, 345, 456, 567,
1234567 etc.
I have to find out if the value that is supplied as input shouldn't exist in
the table. That is if I pass a value as 123 any of 1 or 2 or 3 shouldn't
exist in the table in any position. How do I check this?
Any help in this regard is very much appreciated.
Thanks and Regards,
Ranganath
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Krishnaswamy, Ranganath
INET: Ranganath.Krishnaswamy_at_blr.hpsglobal.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Mar 27 2003 - 05:38:43 CST
![]() |
![]() |