Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Tabularizing printed output from database 'blocks'

From: g:santilli:tiscalinet:it at: 30-Jun-2003 12:32

Hi John, On Monday, June 30, 2003, 1:36:34 AM, you wrote: JD> Does anyone have a neat way to display (print) the JD> returned values from a series of datafile 'blocks' JD> when the values inside the blocks vary in size (string JD> size)..... Nenad's mysql-protocol.r comes with mysql-client.r that emulates MySQL's command line client. Using it, you get a print out like: mysql> select * from vendite limit 5 +------+-------------+------------+--------------+-------+-------+---------------+ | ID | Data | codCliente | Destinazione | Colli | stato | NumPreventivo | +------+-------------+------------+--------------+-------+-------+---------------+ | 1474 | 16-Apr-2003 | 8 | NULL | 0 | Evasa | 153 | | 1473 | 16-Apr-2003 | 39 | Idem | 1 | Evasa | 152 | | 1472 | 16-Apr-2003 | 16 | Idem | 4 | Evasa | NULL | | 1471 | 16-Apr-2003 | 44 | Idem | 3 | Evasa | NULL | | 1470 | 16-Apr-2003 | 18 | Idem | 4 | Evasa | NULL | +------+-------------+------------+--------------+-------+-------+---------------+ 5 row(s) in set If this is what you want, you might want to borrow the code from mysql-client.r. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r