Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-2006, 09:15 AM
Kasper K
 
Posts: n/a
Default Format query result.

Hi ppl,

Im having the time of my life with this database *sigh*
Anyways, i have this problem which I can't solve. I would like to format
the query result.

I have a table like this:

art_no
203
412
592
645

Now i want to break the rule and have my output looking like this:

203 412 592 645

So I get it on one row!

Is this possible?


Regards,
Kasper K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-28-2006, 11:45 AM
Paul Lautman
 
Posts: n/a
Default Re: Format query result.

Kasper K wrote:
> Hi ppl,
>
> Im having the time of my life with this database *sigh*
> Anyways, i have this problem which I can't solve. I would like to
> format the query result.
>
> I have a table like this:
>
> art_no
> 203
> 412
> 592
> 645
>
> Now i want to break the rule and have my output looking like this:
>
> 203 412 592 645
>
> So I get it on one row!
>
> Is this possible?
>
>
> Regards,
> Kasper K.


Take a look at the GROUP_CONCAT function


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-29-2006, 02:19 PM
Kasper K
 
Posts: n/a
Default Re: Format query result.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:46 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.