I think you should run this query. To replace space with dash.
update wp_posts set wp_posts.post_name = REPLACE( wp_posts.post_name, ' ', '-' );
Don’t forget to change table_prefix in this.
And also, keep a backup on current database before trying.
Related Posts:
- Clean up very big and very dirty database
- How can I convert everything from category X to have post format Link
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- What is the difference between “INNER JOIN” and “OUTER JOIN”?
- SQL WITH clause example [duplicate]
- The wait operation timed out. ASP
- Conversion failed when converting date and/or time from character string while inserting datetime
- how to fix oracle ORA-01722 invalid number error
- SQL query to select dates between two dates
- MySQL – Operand should contain 1 column(s)
- SQL SELECT WHERE field contains words
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- NOT IN vs NOT EXISTS
- Must declare the scalar variable
- ORA-00979 not a group by expression
- How can I do a FULL OUTER JOIN in MySQL?
- MySQL query String contains
- T-SQL split string based on delimiter
- Finding duplicate values in a SQL table
- MySQL Cannot Add Foreign Key Constraint
- Oracle error : ORA-00905: Missing keyword
- How do I import an SQL file using the command line in MySQL?
- mysql Foreign key constraint is incorrectly formed error
- Can a foreign key be NULL and/or duplicate?
- How do composite indexes work?
- Difference between JOIN and INNER JOIN
- MySQL “WITH” clause
- What is the difference between JOIN and UNION?
- MySQL Multiple Joins in one query?
- Error Code: 2013. Lost connection to MySQL server during query
- “CASE” statement within “WHERE” clause in SQL Server 2008
- SQL join on multiple columns in same tables
- ORA-00972 identifier is too long alias column name
- What is the difference between Scope_Identity(), Identity(), @@Identity, and Ident_Current()?
- Sql query – getting rid of hard-coded values
- ORA-00918: column ambiguously defined in SELECT *
- How To Run A Github Repository?
- SQL Switch/Case in ‘where’ clause
- Oracle – ORA-01489: result of string concatenation is too long [duplicate]
- SQL Server WITH statement
- How to run a SQL query on an Excel table?
- Algebra Relational sql GROUP BY SORT BY ORDER BY
- SQL Server reports ‘Invalid column name’, but the column is present and the query works through management studio
- Remote table-Valued Function Calls are not allowed
- The backend version is not supported to design database diagrams or tables
- Determine ROW that caused “unexpected end of file” error in BULK INSERT?
- SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax — PHP — PDO [duplicate]
- Difference between View and table in sql
- Using group by on multiple columns
- What is the purpose of using WHERE 1=1 in SQL statements?
- Exclude a column using SELECT * [except columnA] FROM tableA?
- Why is SQL server throwing this error: Cannot insert the value NULL into column ‘id’?
- pg_ctl: no database directory specified and environment variable PGDATA unset
- ERROR 1148: The used command is not allowed with this MySQL version
- Bulk load data conversion error (truncation)
- How to order by with union in SQL?
- Difference between INNER JOIN and LEFT SEMI JOIN
- SQL conditional SELECT
- ‘CREATE PROCEDURE’ must be the only statement in the batch (Erro)
- PostgreSQL create table if not exists
- PostgreSQL visual interface similar to phpMyAdmin?
- DATEDIFF function in Oracle
- Solutions for INSERT OR UPDATE on SQL Server
- MySQL – Get row number on select
- MySQL error: Unknown column in ‘where clause’
- What is the difference between Views and Materialized Views in Oracle?
- How to truncate the text returned for a column in a MySQL query
- “select * into table” Will it work for inserting data into existing table
- ORA-01735: invalid ALTER TABLE option – Toad
- CASE IN statement with multiple values
- List of special characters for SQL LIKE clause
- What SQL Query to do a simple find and replace
- Use wpdb->prepare for `order by` column name
- How To Write An Inner Join With WP Query
- Cron While Editing Post
- Include data from custom table in WP_Query
- How to import a Typo3 database to a wordpress site?
- find pods item where relationship to other pod is not set
- cleaning up safely wordpress wp_postmeta table
- Export SQL query based on post type
- Convert a category of posts to a custom post type using (MySQL) queries
- Connect to Ms SQL Server
- wpdb prepare sql problem
- Can Anyone provide an example of RAW SQL for SELECTING posts by 2 or more tags
- REGEXP_REPLACE in post_contet
- Menu Order updating automatically
- How delete post_content records of specific category from phpmyadmin
- Reset post IDs with all post meta
- Fastest way to display 5000 post titles?
- How to Add or Change Post Title
- Why does DROP TABLE-ing the `wp_options` reset my user session?
- How do I display SQL query on a specific page of my wordpress site
- How to refactor DB queries for better TTFB in WordPress?
- How to process a single attribute in a SQL request twice times?
- query sql-table and change entities
- Is it possible to utilize custom SQL for a single-post.php?
- How to handle my row actions on a custom list table in the admin section
- Backtick (MySQL norm) added to SQL Server Query causing error
- How can I avoid duplicate primary keys in SQL import?
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?