SELECT certificate INTO DUMPFILE '/tmp/certificate.bin' FROM identity WHERE id = 42;
来源: http://www.codesnippet.cn/detail/160120131691.html