salix/db/routines/vn2008/views/flight.sql

13 lines
354 B
MySQL
Raw Permalink Normal View History

2024-01-29 08:12:29 +00:00
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn2008`.`flight`
AS SELECT
`f`.`id` AS `flight_id`,
`f`.`duration` AS `duration`,
2024-01-31 13:50:56 +00:00
`f`.`flightPath` AS `route`,
2024-01-29 08:12:29 +00:00
`f`.`days` AS `days`,
`f`.`airlineFk` AS `airline_id`,
2024-01-31 13:50:56 +00:00
`f`.`airportArrivalFk` AS `airport_out`,
`f`.`airportDepartureFk` AS `airport_in`
2024-01-29 08:12:29 +00:00
FROM
`vn`.`flight` `f`;