select * from table_name where id in(1,2,3...)
- Oracle9: 256 Ge
- Oracle10: 1000 Ge
- Oracle11: not tested, the test message if the message area
- Mysql: the number is not limited; sql statement but the entire size is limited (max_allowed_packet), default 4M