我想创建一个触发器,以防止在numflights
不存在的航班 ( )的预订表中插入。
Tables
----------------------------------------------
flights(numflight, origine, destination, dep, arr)
airports(code, city, country)
reservation(people, numflight, date_travel)
Run Code Online (Sandbox Code Playgroud)
列origine
和destination
包含机场代码。