我有下表:
InventorLast InventorFirst
Bram Ernst Arne Johan
Gesing Ernst Rudolf F.
Beranek Ernst W.
Koch Ernst-Christian
Bozak Erol
Kurtas Erozan Mehmet
Calder Errol Jay
Binder Erwin
Goetschi Erwin
我想在第一个空格或 - 如 Ernst-Christian 示例中看到的分隔中间名/首字母。
在创建表之后或从源数据插入时,我会更容易执行此操作吗?
现有的插入顺序如下:
insert into Inventor (PatentNo, InventorFirst, InventorLast, City, statename, country, NationalityCountry, ResidenceCountry)
select PatentNo, InventorFirstname, InventorLastname, City, statename, country, NationalityCountry, ResidenceCountry
from InventorUpdate
where InventorFirstName is not null
and InventorLastName is not null
我知道我将不得不添加 InventorMiddle 列。我只需要一些编码方面的帮助。
谢谢!