Jump to content

mysql doubt please try to solve??????


rajmohan

Recommended Posts

i am having a table like

---------------------------------

s.no  |  field1  |  field2  |  field3 |

---------------------------------

  1    |    a    |  one    |  aa    |

  2    |    a    |  two    |  bb    |

  3    |    a    |  three  |  cc    |

  4    |    b    |  one    |  dd    |

  5    |    b    |  two    |  ee    |

  6    |    b    |  three  |  ff    |

  7    |    b    |  four    |  gg    |

---------------------------------

 

i want the result like

-------

  a

-------

aa

bb

cc

------

  b

------

dd

ee

ff

gg

-----

 

i wnat a query in a single line who i will right for that please help me

 

 

Link to comment
https://forums.phpfreaks.com/topic/57671-mysql-doubt-please-try-to-solve/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.