I'm looking for a way to randomly sample for mysql tables, and was reading this article - http://jan.kneschke.de/projects/mysql/order-by-rand/
However, this doesn't work for my case because many tables in mysql don't have a "rowid"/autoincrement column. Is there still a way I can randomly sample rows in this case?
Here is the table structure:
'CREATE TABLE `table_name` (
`col1` date DEFAULT NULL,
`col2` bigint(20) DEFAULT NULL,
`col3` varchar(255) DEFAULT NULL,
`col4` varchar(64) DEFAULT NULL,
`col5` varchar(64) DEFAULT NULL,
`col6` bigint(20) DEFAULT NULL,
`col7` bigint(20) DEFAULT NULL,
`col8` varchar(255) DEFAULT NULL,
`col9` decimal(16,5) DEFAULT NULL,
`col10` bigint(20) DEFAULT NULL,
`col11` varchar(64) DEFAULT NULL,
`col12` bigint(20) DEFAULT NULL,
`col13` bigint(20) DEFAULT NULL,
`col14` bigint(20) DEFAULT NULL,
`col15` bigint(20) DEFAULT NULL
) ENGINE=BRIGHTHOUSE DEFAULT CHARSET=utf8'