MySQL: How to find the column values having double quotes?

If  you are having a table. In the table you have list of columns

Table name: Specification
---------------------------
Spec Id    Title text                                                       ISBN                            Publisher name
1             Introduction to "Java Programming"            9789058699872           Pearson Education
2             Introduction to "Java2 EE Programming"     9789058679873           Pearson Education
3             Introduction to "Java2 ME Programming"    9789658659874           Pearson Education
4             Introduction to Struts2 Framework              9789458699875           Pearson Education

You want to find out the Title text column value having double quotation or not.

QUERY:
------------
Select * from specification where titletext LIKE '% " %';

If you execute this query. It will execute the title text column have double quotes that are displayed in the Result window.


Output:
Spec Id    Title text                                                       ISBN                            Publisher name
1             Introduction to "Java Programming"            9789058699872           Pearson Education
2             Introduction to "Java2 EE Programming"     9789058679873           Pearson Education
3             Introduction to "Java2 ME Programming"    9789658659874           Pearson Education
----------------------------------------------------------------------------------------------------


This post may helpful to some one around the world
Thanks in advance.........





Comments

Popular posts from this blog

How do i Increase the capacity of the Eclipse Output console?

An internal error occurred during: "Building workspace". Java heap space

How to convert the Math Number to Words in Java?