Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一些提交者提交的位置字符串太短。如何查询它们以在 phpMyAdmin 中删除它们?
查询看起来像这样(结尾显然是伪代码):
SELECT `post_id` FROM `wp_postmeta` WHERE `meta_key` = 'location' AND `meta_value` HAS LESS THAN 10 CHARACTERS
SELECT `post_id` FROM `wp_postmeta` WHERE `meta_key` = 'location' AND CHAR_LENGTH(meta_value) < 10