SELECT custom post type and its meta in SQL
Tom’s comment on the question makes a very important point: unless you are just using this SQL for diagnostic or exploratory purposes, there is almost definitively an easier and more efficient means to access this data, either through the WordPress APIs or via tools like WP CLI. There is virtually no reason to use this … Read more