Re: SELECT into OUTFILE (binary formats?) - workaround - solved
Posted by: admin www.mercuriusgids.nl
Date: February 25, 2010 04:48PM

Its possible though. Currently dumping in binary formats. Still need to use delimiters though. The answer is to use bitshifting in combination with char()

ie.

select
char( (data>>16)&0xFF ), --first byte
char( (data>>8)&0xFF ), --second etc
char( (data>>0)&0xFF )
into outfile etc.....

For me, this is sufficient. Also the load infile works ...
You can use bit(24), binary(3) etc.

Using the technique above dumped values are always left padded and the right size.

I need also maximum number of records to read and start/end offset so i guess i am going to modify some mysql source :)

Cheers

Options: ReplyQuote


Subject
Views
Written By
Posted
2202
February 24, 2010 07:50PM
Re: SELECT into OUTFILE (binary formats?) - workaround - solved
3256
February 25, 2010 04:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.