in reply to Re: searching for multiple strings in a line
in thread searching for multiple strings in a line
THEN: I would enter a KEYWORD such as SELECT and it would search a line such as teh one above....say that it found the word SELECT...continue searching the line to see if there are any OTHER select statements in the line...if it is...then it count the line as having TWO Select statements and return a message saying...."this file contains SQLs with nested statements...etc. I know this may seem useless but for my project it is very necessary. With GREP, it is pulling the entire line and saying it is ONE SQL whereas I NEED it to pull that SQL and then run this program through the file to make sure I didn't miss any NESTED SQLS.Select LTrim(RTrim(a.eeds_emp_id)) from whatever && Select Max(campaig +n_key) from whatever......
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching for multiple strings in a line
by toolic (Bishop) on Jul 10, 2007 at 17:40 UTC | |
by dhudnall (Novice) on Jul 10, 2007 at 17:58 UTC | |
|
Re^3: searching for multiple strings in a line
by roboticus (Chancellor) on Jul 11, 2007 at 10:34 UTC |