גירסת mysql:
ליצירה:
sql code
CREATE TABLE `calander` (
`gregorian_date` date NOT NULL,
`full_hebrew_date` varbinary(14) NOT NULL,
`serial_number` int(11) NOT NULL,
`hebrew_number_day` tinyint(4) NOT NULL,
`hebrew_day` varchar(2) NOT NULL,
`hebrew_number_month` tinyint(4) NOT NULL,
`hebrew_month` varchar(5) NOT NULL,
`hebrew_number_year` smallint(6) NOT NULL,
`hebrew_year` varchar(5) NOT NULL,
`day_of_week` tinyint(4) NOT NULL,
PRIMARY KEY (`gregorian_date`),
UNIQUE KEY `UK_calander_serial_number` (`serial_number`),
KEY `IDX_calander_full_hebrew_date` (`full_hebrew_date`),
KEY `IDX_calander_hebrew_day` (`hebrew_day`),
KEY `IDX_calander_hebrew_number_day` (`hebrew_number_day`),
KEY `IDX_calander_hebrew_number_month` (`hebrew_number_month`),
KEY `IDX_calander_hebrew_number_year` (`hebrew_number_year`),
KEY `IDX_calander_day_of_week` (`day_of_week`),
KEY `IDX_calander_hebrew_month` (`hebrew_month`),
KEY `IDX_calander_hebrew_year` (`hebrew_year`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='לוח שנה עברי ולועזי';
לייבוא החומר:
calander.rar