这里我们将看到如何使用 PL/SQL 检查给定年份是否是闰年。在PL/SQL代码中,一些命令组被排列在相关的语句声明块中。
闰年检查算法如下。
算法
isLeapYear(year):
begin
if year is divisible by 4 and not divisible by 100, then
it is leap year
else if the number is divisible by 400, then
it is leap year
else
it is not leap year
end



腾讯云 12-20 广告

