select DM_PETMBR.姓名 from DM_PETMBR,YW_ZSFB where DM_PETMBR.PETID=YW_ZSFB.PETID
这个语句能正确执行,
但是需要把执行结果写到LOG表的,事件字段中,sql语句应该如何写?
百度关键字:“ INSERT INTO SELECT”
INSERT INTO LOG VALUES SELECT
insert into log(字段1,字段2...) select DM_PETMBR.姓名 from DM_PETMBR,YW_ZSFB where DM_PETMBR.PETID=YW_ZSFB.PETID