First of all, pattern matching is used to find a string in a certain format, that is, it is used to search for a string in a certain format like' cu000_'. Then insert the query results into the new table.
Then use a maximum function to query and find the maximum value. Then add 1 to this value using pattern matching.