我有一些程序,我希望在评估条件后得到某种确认.
例如,pusedocode就像,
if ( select count(*) from assgn to where eid = 1 ) > 5
print " the total number of projects employee working is more than 5 "
else
insert the value into the assgnto table
Run Code Online (Sandbox Code Playgroud)
我该如何在MySQL中这样做呢?
mysql ×1