Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以替换单元格中的部分数据。例如,如果我在单元格中有以下 URL,www.website.com/p=1113,我是否可以替换 www.website.com 但保留 p=1113?最终结果为 www.newwebsite.com/p=1113
要替换website为newwebsite,您可能需要使用REPLACE()以下方法:
website
newwebsite
REPLACE()
SELECT REPLACE('www.website.com/p=1113', 'website', 'newwebsite');
这将导致:
www.newwebsite.com/p=1113