parsing a .sql file

2011-11-13 Thread Fahim Mohammad
I have the following info in a text file called file.sql Is there a way to extract table name and all the fields in this table. Thanks. Fahim -- MySQL dump 10.11 -- -- Host: localhostDatabase: ailMel1 -- -- -- Server version 5.0.67 /*!40

Re: How to find values which do not return any tuple in "IN" clause

2011-06-10 Thread Fahim Mohammad
stand it) but gives a little more > information than you actually wanted since it shows 'aaa' and 'ddd' which DO > have tuples. If you want to see only 'bbb' and 'ccc' which have no tuples, > modify the query by adding this having clause: > > select

Re: How to find values which do not return any tuple in "IN" clause

2011-06-10 Thread Fahim Mohammad
I am looking for those values (or count of those values) which do not resulted in a hit. Thanks Fahim On Fri, Jun 10, 2011 at 7:17 PM, Fayaz Yusuf Khan wrote: > On Saturday 11 Jun 2011 4:06:27 AM Fahim Mohammad wrote: > > select * from tablename where fieldname in ('aaa

How to find values which do not return any tuple in "IN" clause

2011-06-10 Thread Fahim Mohammad
Hi select * from tablename where fieldname in ('aaa','bbb','ccc','ddd'); return only the successful hit. How can I know how many out of four ('aaa','bbb','ccc','ddd') resulted in a miss OR which values do not return any tuple. Thanks Fahim