After the SharePoint application is upgraded through the patch, some problems may occur due to the low database version, such as the failure to delete the website. To solve this problem, you only need to execute the following command in SharePoint 2010 management shell:
$ Contentdb = Get-spcontentdatabase | where-object {$ _. Name-match "wss_content"} upgrade-spcontentdatabase-identity $ contentdb
However, when you execute this command, an error is reported, such as the following error message:
Database [wss_content] contains a website with an ID of [8a9d7f2e-0ccb-4fb6-b561-efd2a0419665] And a URL of [/], whose ID has been associated with another database in the website diagram (ID for [d9371285-151b-4065-ac37-59d80a6276ed], name: [wss_content]) join. Consider deleting one of websites with conflicting IDs.
The reason for Sharepoint on my machine is that two top-level website sets with different ports are created. I deleted the website set of another port and then executed this command. (Some careful friends may guess that the filter "-match" wss_content "in the command is too wide, which leads to matching of two content database instances. This is not the reason. If two database instances are matched, other errors are reported .)