dethfire
Well-known member
I can do a select with most of this, but when I switch it to update, it chokes and I can't see where. any help?
SQL:
UPDATE xf_thread
SET xf_thread.discussion_state = 'deleted'
FROM xf_thread
INNER JOIN xf_post
ON xf_thread.thread_id = xf_post.thread_id
WHERE xf_post.message
LIKE '%[Broken]%'
AND length(xf_post.message) < 1000
AND xf_thread.reply_count = 0
Last edited: