Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralInfinate levels of hierarchal data [modified]memberasdrog3 Oct '12 - 1:30 
In many database solutions folk tend to use tables with one to many relationships in order to hierarchal data where as the following achieves the same.
 
ID - Field1 - Field2 - ParentID
1      x      y       0
2      xx    yy      1
3      rr      r       1
4      pr     p      2

modified 3 Oct '12 - 12:25.

GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamembermark merrens3 Oct '12 - 5:22 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamemberasdrog3 Oct '12 - 6:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamembermark merrens3 Oct '12 - 6:43 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal dataprotectorAspDotNetDev3 Oct '12 - 6:45 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamembermark merrens3 Oct '12 - 7:02 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamemberasdrog3 Oct '12 - 13:21 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal datamemberSentenryu4 Oct '12 - 0:50 
GeneralRe: Infinate levels of hierarchal datamemberBernhard Hiller4 Oct '12 - 0:28 
GeneralRe: Infinate levels of hierarchal datamemberasdrog4 Oct '12 - 11:35 
GeneralRe: Infinate levels of hierarchal dataprotectorAspDotNetDev4 Oct '12 - 12:24 
GeneralRe: Infinate levels of hierarchal datamemberasdrog4 Oct '12 - 13:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 24 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid