Forums

wp_term_relationships (1 post)

  1. smarx80
    Member
    Posted 3 years ago #

    Hi,
    I think I made some error in the DB when some months ago I've splitted my blog into 2 distinct ones.

    Now I have an enoumous wp_term_reletionships table!

    I've understood object_id should be equal only to wp_posts.ID and wp_links.link_id

    so if I execute this query:
    SELECT DISTINCT object_id FROM wp_term_relationships WHERE object_id NOT IN (SELECT ID from wp_posts ) AND object_id NOT IN (SELECT link_id from wp_links )

    I should recive no results, isn't it?

    But this isn't what i get, can i securely erase all rows I get from this query?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic