Bulk update set of URLs via SQL

OK, so let’s assume you have these URLs in some array (if you don’t, you can easily prepare it using any developer text editor, I guess). Let’s call that array $slugs and let’s say it’s defined like so:

$slugs = array(
    'customer-name' => 'google-customer-name',
    ...
);

So there are only slugs in there.

So now you’ll have to modify the posts:

global $wpdb;
foreach ( $slugs as $old => $new ) {
    $wpdb->update(
        $wpdb->posts,
        array( 'post_name' => $new ),
        array( 'post_name' => $old )
    );
}

This will change the slugs, hence the permalinks, for these posts.