Solved

mysql EXPLAIN SELECT * FROM tbl_name WHERE FALSE\G

Posted on 2009-05-14
3
657 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:Tony McCreath
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

840 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