SQL查询以选择2D数组中的所有日期

时间:2013-06-04 19:53:11

标签: sql arrays

我有一个数组数组,我需要选择日期范围内的所有记录(数组)。 当我在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数组。

0 个答案:

没有答案