Solved

mysql EXPLAIN SELECT * FROM tbl_name WHERE FALSE\G

Posted on 2009-05-14
3
649 Views
Last Modified: 2013-12-12
EXPLAIN SELECT * FROM tbl_name WHERE FALSE\G
how can this be typed in sqlyog
\ is ignored as a character

0
Comment
Question by:shopjd
3 Comments
 
LVL 3

Expert Comment

by:cevoman
ID: 24387535
Hi there,

You need to select a column your trying to search a value, so for example if the column was `field1` and you wanted to search for the text "FALSE\G" your SQL query would be as attached

Kind regards
James


SELECT * FROM tbl_name WHERE `field1` = "FALSE\G"

Open in new window

0
 
LVL 39

Accepted Solution

by:
Roger Baklund earned 500 total points
ID: 24388042
The \G only works in the mysql client, it shows the results vertically:

http://dev.mysql.com/doc/refman/5.1/en/mysql-tips.html
0
 
LVL 23

Expert Comment

by:Tiggerito
ID: 24395815
The /G command is  not part of the query, but after it.

Your query does not show much, as a WHERE FALSE will return nothing.

Could you provide more info.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now