試圖編寫和執行一個MySQL查詢來顯示電影號碼,電影標題,電影成本和電影流派的所有電影是行動或喜劇電影,並有一個成本低於50美元。按類型對結果按升序排序。MySQL不正確的輸出不知道什麼是錯誤的查詢
mysql> select mv_no, mv_name, mv_cost, mv_genre from movie
-> where mv_genre = ('Action' or 'Comedy') and mv_cost < 50
-> order by mv_genre;
+-------+----------------------------+---------+----------+
| mv_no | mv_name | mv_cost | mv_genre |
+-------+----------------------------+---------+----------+
| 1245 | Time to Burn | 45.49 | ACTION |
| 1237 | Beatnik Fever | 29.95 | COMEDY |
| 1239 | Where Hope Dies | 25.49 | DRAMA |
| 1234 | The Cesar Family Christmas | 39.95 | FAMILY |
+-------+----------------------------+---------+----------+
4 rows in set, 10 warnings (0.00 sec)
它不是想表現出戲劇或電影家庭 – Daniel 2013-04-08 15:57:49