Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在mysql数据库中搜索超过一定字符数的条目?_Php_Mysql_Database_Search - Fatal编程技术网

Php 如何在mysql数据库中搜索超过一定字符数的条目?

Php 如何在mysql数据库中搜索超过一定字符数的条目?,php,mysql,database,search,Php,Mysql,Database,Search,我正在为搜索引擎优化而精简我的网站。我的网站有100多个页面的标题标签太长。我的页面标题存储在mySQL数据库中,我希望我可以运行一个搜索,只列出超过70个字符的条目。我在网上搜索了一些关于如何找到一个精确的字符号的例子,但没有找到任何返回超过一个数字的条目 提前感谢您的帮助。从字符长度(标题)>70的页面中选择*? select * from YourTable where LENGTH(YourColumn) > 70

我正在为搜索引擎优化而精简我的网站。我的网站有100多个页面的标题标签太长。我的页面标题存储在mySQL数据库中,我希望我可以运行一个搜索,只列出超过70个字符的条目。我在网上搜索了一些关于如何找到一个精确的字符号的例子,但没有找到任何返回超过一个数字的条目


提前感谢您的帮助。

从字符长度(标题)>70的页面中选择*
select * from YourTable where LENGTH(YourColumn) > 70