I'm very new to SQL and would like to know how to get some data from a table and place it into an array. If I have this:
SELECT SeatNo FROM SEATING_PLAN
WHERE Block = 1;
SeatNo and Block are INT.
What sort of array should I use to place all of the seat numbers that match into the array, and what sort of loop is best for this?
Thanks in advance