MySQL Query Long data is no value returned (can try line break)

Source: Internet
Author: User
Tags mysql query

For example, how many records are available to include such data in the database:

<table class= "Link-more-blue" style= "width:100%;" border= "0" cellspacing= "0" cellpadding= "0" >

<tbody>

<tr class= "Grid-head-wrap" >

<td>file name</td>

<TD width= ">Size</td>"

<TD width= ">&nbsp;</td>"

</tr>

</tbody>

</table>

Query directly using SQL statements:

SELECT Count (*) from driver_lookup_com.content
Where Introtext like '%<table class= "Link-more-blue" style= "width:100%" border= "0" cellspacing= "0" cellpadding = "0" ><tbody>"+

"<tr class=" Grid-head-wrap "><td>file name</td><tdwidth=" ">size</" td><td width= >&nbsp;</td></tr></tbody> </table>% ';

Results no data returned, there is a record in the database, why, may have forgotten the newline character?

SELECT Count (*) from driver_lookup_com.content

where introtext like '%<table class= "Link-more-blue" style= "width:100%" border= "0" cellspacing= "0" C ellpadding= "0" >\ r \ n<tbody> "+

"\ r \ n<tr class=" grid-head-wrap ">\ r \<td>file name</td>\ r \ n<t D width= ">Size</td>\ r \ n<td width=" >&nbsp;</td>\r\n</tr>\ r \ n </tbody></table>% ';

Line break: windows with \ r \ n

Linux with \ n

MySQL Query Long data is no value returned (can try line break)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.