简体   繁体   English

从表开头的所有记录中删除

[英]Delete all records from table that starts with <

I want to delete all records from the table called comments that starts with " < " and i don't find a way to do it , how can i do it ? 我想从以“ <”开头的称为“注释”的表中删除所有记录,但找不到解决方法,该怎么办?

I've tried do do it when i open the page but it doesn't work 我尝试过在打开页面时执行此操作,但是它不起作用

DELETE FROM comments
WHERE b_text  LIKE '<%';

This may be a typo, but your comparison < appears to be space-lessthan-space. 这可能是一个错字,但您的比较<似乎<空间。

If so, that needs to be represented in the pattern: 如果是这样,则需要用模式表示:

DELETE FROM comments
WHERE b_text  LIKE ' < '

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM