我有下表:
发明人(inventorID、PatentNo、InventorFirst、InventorLast、City、State)
其中inventorid 是pk,patentno 是fk。
这是当前的插入代码:
insert into Inventor (PatentNo, InventorFirst, InventorLast, City, statename, country, NationalityCountry, ResidenceCountry)
select PatentNo, InventorFirstname, InventorLastname, City, statename, country, NationalityCountry, ResidenceCountry
from InventorUpdate;
我想修改它,以便如果 InventorFirstname 和 InventorLastname 字段为空,则它不会插入到发明者表中