>>>> 2012/05/25 14:57 +0700, HaidarPesebe >>>> id | name | parentid ---------------------- 1 | cat A | 0 2 | cat B | 0 3 | subcat A | 1 4 | subcat A | 1 5 | subncat B | 2 -------------------------
I want to display the result like this:
1. Cat A - Subcat A - Subcat A 2. CatB - Subcat B <<<<<<<< If the degree of subordination is a number in your record, try function REPEAT (output concatenated to A or B), or LPAD.
************************************************************** Scanned by MailScan AntiVirus and Content Security Software. Visit http://www.escanav.com for more info on eScan and X-Spam. **************************************************************
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql
May 25
=?ISO-8859-1?Q?Andr=E9s_Tello?= Re: category with parentid
May 25, 2012; 10:07
=?ISO-8859-1?Q?Andr=E9s_Tello?=
Re: category with parentid
May 25
Peter Brawley Re: category with parentid
May 25, 2012; 11:31
Peter Brawley
Re: category with parentid
May 25
Roberta Jask?lski Re: category with parentid
May 25, 2012; 22:53
Roberta Jask?lski
Re: category with parentid
May 28
HaidarPesebe Re: category with parentid
May 28, 2012; 12:54
HaidarPesebe
Re: category with parentid
May 28
Tsubasa Tanaka Re: category with parentid
May 28, 2012; 18:25
Tsubasa Tanaka
Re: category with parentid
May 28
hsv Re: category with parentid
May 28, 2012; 17:09
hsv
Re: category with parentid
May 28
Roberta Jask?lski Re: category with parentid
May 28, 2012; 17:20
Roberta Jask?lski
Re: category with parentid
May 30
HaidarPesebe Re: category with parentid
May 30, 2012; 14:31
HaidarPesebe
Re: category with parentid
May 30
HaidarPesebe Re: category with parentid
May 30, 2012; 14:47
HaidarPesebe
Re: category with parentid
May 30
Tsubasa Tanaka Re: category with parentid
May 30, 2012; 23:30
Tsubasa Tanaka
Re: category with parentid
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!