![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bourne shell - lower case a string | buechler66 | UNIX for Dummies Questions & Answers | 5 | 05-08-2008 02:00 PM |
| Sed - Lower case single characters | zlindner | UNIX for Dummies Questions & Answers | 6 | 12-09-2007 11:07 AM |
| Accepting Upper and Lower case | lweegp | Shell Programming and Scripting | 8 | 12-08-2007 06:57 PM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-29-2002 01:07 AM |
| Upper And Lower Case | pciatto | Shell Programming and Scripting | 1 | 04-29-2002 01:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script needed to select and delete lower case and mixed case records
HELLO ALL,
URGENTLY NEEDED A SCRIPT TO SELECT AND DELETE LOWER AND MIXED CASE RECORDS FROM A COLUMN IN A TABLE. FOR EXAMPLE : Table name is EMPLOYEE and the column name is CITY and the CITY column records will be: Newyork washington dallas New jersey Texas.... and so on.... many records will be there in this CITY column, Both the lower case and also the record which starts with UPPER CASE like 'NewYork ' should retrieve and delete from the one column in one particular table. Thanks in anticipation!!! |
|
||||
|
Hi Abhilash,
you should use the following query in ur script to delete the records other than upper case select * from employee where city not in ucase(city) delete from employee where city not in ucase(city) ***************script wiill be like this************ $SQLPLUS username/password@schemaname @query.sh>temp.log where query.sh contains the following query delete from employee where city not in ucase(city) *********************************************** |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|