0

Write a PL/SQL block to find whether the given year is leap year or not

It has to be executed in mysql workbench please do provide solution if you know it 🙏

22nd May 2021, 4:03 PM
S.Brindha
S.Brindha  - avatar
5 Réponses
+ 1
DECLARE year NUMBER := 2012; BEGIN IF MOD(year, 4)=0 AND MOD(year, 100)!=0 OR MOD(year, 400)=0 THEN dbms_output.Put_line(year || ' is leap year '); ELSE dbms_output.Put_line(year || ' is not leap year.'); END IF; END;
22nd May 2021, 4:05 PM
Srishti
Srishti - avatar
0
Showing error in mysql workbench should I have to copy paste as it is?
22nd May 2021, 4:17 PM
S.Brindha
S.Brindha  - avatar
0
Yeahh!
30th May 2021, 5:02 PM
Srishti
Srishti - avatar
0
2017
3rd Jan 2023, 9:53 AM
Nidarshan L M
Nidarshan L M - avatar
- 1
write a pl/sql block to display a particular item details display appropriate message if the item is not found
9th Aug 2021, 7:18 AM
தனி காட்டு ராஜா
தனி காட்டு ராஜா - avatar