From: Martijn Tonies Date: December 8 2003 10:10am Subject: Re: In need of a dummy select statement ... List-Archive: http://lists.mysql.com/mysql/155233 Message-Id: <01bb01c3bd73$81302290$0e02a8c0@martijn> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, > I am a newbie to mysql db. I need a select statement which will just > execute and doesn't > return any results. Also, it should not depend on any table which is > specific to a database. > For example, Oracle has a table named 'tab' which will be present in all > databases so my > dummy select statement looks like 'select tname from tab where 0=1'. > Could this > functionality be achieved in mysql ? Is there any table in mysql which > is similar to Oracle's > 'tab' ? Not by default, but hey: you can always create one. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server. Upscene Productions http://www.upscene.com