Hi, You could use a "java.util.Writer" of course, possibly in a user defined function.
Or you could still use the CSV tool, but disable the header, put everything in one single column, and use a formula for that column (for example "select 'Customer name ' || name || ' have a salary ' || salary from tableName"). But you would need to set the CSV options correctly (as for quoting and escaping). Regards, Thomas On Mon, Aug 4, 2014 at 10:12 AM, Phamorn Hongsawat <[email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > I want to design output as a text file. Suppose I have a table with Name > and Salary row like this > > Name | Salart > _________________ > > Peter | 20000 > _________________ > > Michael | 30000 > > I knew about CSVWRITE function but I want a text file like this (customize > the sentence) > > Customer name Peter have a salary 20000 > Customer name Michael have a salary 30000 > . > . > . > > Is it possible? If so, how can I deal with? > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
