Sometime it is needed to handle a lot of rows on client side.
Usual way is send query via mysql_query and than
handle the result in loop mysql_fetch_array
(here I use PHP functions but they are common or similar for all
APIs, including C).
Consider table:
PLAIN TEXT SQL:
- CREATE TABLE `longf` (
- `f1` int(11) NOT NULL AUTO_INCREMENT,
- `f2` date DEFAULT NULL,
- `f3` date DEFAULT NULL,
- `f4` varchar(14) DEFAULT NULL,
- `f5` varchar(6) DEFAULT NULL,
- `f6` date DEFAULT NULL,
- `f7` smallint(6) DEFAULT NULL,
- `f8` smallint(6) DEFAULT NULL,
- `f9` varchar(13) DEFAULT NULL,
- `f10` varchar(39) DEFAULT NULL,
- `f11` int(11) DEFAULT NULL,
- `f12` float DEFAULT …