MySQL Forums
Forum List  »  Other Migration

Fixed size(lenght) from my SELECT output data
Posted by: Lars Skoog
Date: March 30, 2007 01:25AM

Hi !!

Is there away to have the output from the SELECT command to give me fixed sized columns?.
The reason for this is that i'll would like to do some data manipulation through some unix scripts using cut -c statements. The SELECT command produce a fairly "messy" output when a columns is sometimes empty and sometimes populated.


EX: SELECT id, fname, lname, email FROM users ORDER BY id INTO OUTFILE '/home/las/output.LOG';

Best Regards Lars Skoog

Options: ReplyQuote


Subject
Views
Written By
Posted
Fixed size(lenght) from my SELECT output data
4196
March 30, 2007 01:25AM


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.