I need this query for testing exception handling, so I would prefer that the query is not schema dependent. I am looking for something like SELECT 1;
but of course that doesn't fail.
I am using Java and MySQL but I hope to find answers that doesn't depend on programming languages and/or RDBMSs.