GreatestSwordsman
GreatestSwordsman

Reputation: 1185

SQL To delete characters from a column

I have a wordpress site. I want to delete the first 15 characters from every post on the site.

I believe the table is wp_posts, and the column is post_content

What would be the sql that I execute from my database manager?

Upvotes: 1

Views: 223

Answers (1)

JK.
JK.

Reputation: 5136

Try this:

UPDATE wp_posts SET post_content = substr(post_content, 16);

read more...

Upvotes: 3

Related Questions