2
某些提交者提交的位置字符串太短。 如何查詢他們在phpMyAdmin中刪除它們?在MySQL中查詢的結果少於X個字符
查詢應該是這樣的(結局顯然是僞代碼):
SELECT `post_id` FROM `wp_postmeta`
WHERE `meta_key` = 'location'
AND `meta_value` HAS LESS THAN 10 CHARACTERS
某些提交者提交的位置字符串太短。 如何查詢他們在phpMyAdmin中刪除它們?在MySQL中查詢的結果少於X個字符
查詢應該是這樣的(結局顯然是僞代碼):
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