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.
我需要永久合并数据库中的 2 列。我该怎么做呢?
this should do the stuff :
ALTER TABLE table ALTER COLUMN f1 NVARCHAR(4000) UPDATE table SET f1 = ISNULL(f1,'') + '' + ISNULL(f2, '') ALTER TABLE table DROP COLUMN f2