Search Results

Search: Posts Made By: vrrajeeb
4,621
Posted By vrrajeeb
Hmm ... I still don't seem to be getting the...
Hmm ... I still don't seem to be getting the required output ...

nawk 'BEGIN{RS=";"}{sub(/[Ff][Rr][Oo][Mm].*[Ww][Hh][Ee][Rr][Ee]/,"where",$0);gsub(/\012/,"",$0);printf("%s;\n",$0)}' test.sql
...
4,621
Posted By vrrajeeb
Thanx a lot ... yeah it does work ... but on some...
Thanx a lot ... yeah it does work ... but on some statements like these :

select * from test WHERE test_id in (select test_id1 from test1 where test_id1=1);

the output is :

select * where...
4,621
Posted By vrrajeeb
Search and replace words between two keywords
Hi,

I have a file which contains the following :

select * from test where test_id=1;

select id
from test1, test2 where test_id=1 and test_id=2;

select * from
test1, test2, test3 where...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy