我有一个数组数组,我需要选择日期范围内的所有记录(数组)。 当我在PHP中使用print_r时,它看起来像这样:
Array
(
[0] => Array
(
[FlightID] => 1
[[Flight from]] => Kraków
[[Flight to]] => London
[[Airport from name]] => Balice
[[Airport to name]] => London Heathrow Airport
[[Date]] => 2013-06-06
[[Price for kid]] => 200
[[Prcie for adult]] => 500
[[Total seats]] => 100
[[Free seats]] => 100
[[Flight time]] => 12:00:00
)
[1] => Array
(
[FlightID] => 2
[[Flight from]] => London
[[Flight to]] => Kraków
[[Airport from name]] => London Heathrow Airport
[[Airport to name]] => Balice
[[Date]] => 2013-06-14
[[Price for kid]] => 200
[[Prcie for adult]] => 500
[[Total seats]] => 100
[[Free seats]] => 100
[[Flight time]] => 14:00:00
)
)
等。我需要选择2013-06-03和2013-06-08之间的阵列。 它看起来怎么样?
SELECT * FROM flights WHERE Date Between '2013-06-03' and '2013-06-08'
不起作用,但我猜这是由于2D数组。