Title: Custom sql query
Last modified: August 19, 2016

---

# Custom sql query

 *  Resolved [bekar09](https://wordpress.org/support/users/bekar09/)
 * (@bekar09)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/custom-sql-query/)
 * Hi everybody,
 * I want to export(.sql file) the list of Post titles belonging to a particular
   category(say xx) along with the corresponding guid for the posts from the wp_posts
   table. What should be the query?
 * Is there any way to export only specific columns as the case is with me?
 * All your ideas are most welcome.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [bekar09](https://wordpress.org/support/users/bekar09/)
 * (@bekar09)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/custom-sql-query/#post-1252514)
 * I did it. Though it may not be the proper way, but right now I wanted to do it
   somehow and serve my purpose.
 * Closing the thread.

Viewing 1 replies (of 1 total)

The topic ‘Custom sql query’ is closed to new replies.

## Tags

 * [custom-query](https://wordpress.org/support/topic-tag/custom-query/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)
 * [sql-query](https://wordpress.org/support/topic-tag/sql-query/)

 * 1 reply
 * 1 participant
 * Last reply from: [bekar09](https://wordpress.org/support/users/bekar09/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/custom-sql-query/#post-1252514)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
