我的问题可能听起来很愚蠢,但我被困住了。这是我在 SQL Server 中尝试做的伪代码
if exists(select id from employee where Email='saghir@abc.com')
begin
insert in tasks with selected id
end
else
begin
insert in employee value Email='blah';
insert in tasks with new id in employee
end
希望大家给点建议。。。