Ashleyuk1984
Active Member
How do you run a SQL query on a certain database without "selecting" that database first...
All I want to do is go straight to SQL and perform the query.
Server has multiple databases...
This is the query that I'm trying to perform.
I've tried:
But that didn't work?
All I want to do is go straight to SQL and perform the query.
Server has multiple databases...
This is the query that I'm trying to perform.
Code:
UPDATE wp_posts SET post_author=1 WHERE post_author=0
I've tried:
Code:
Select [I]DatabaseName [/I]UPDATE wp_posts SET post_author=1 WHERE post_author=0
But that didn't work?