WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2006, 10:54 AM
WebProWorld New Member
 

Join Date: Sep 2004
Location: switzerland
Posts: 8
xhtml RepRank 0
Default Are linked list with MySQL possible (advanced user only) ?

For experts only :

Does any expert know how to make a MySQL request with only one (select and subselect) without using any loop with PHP ?
Sample data :
Code:
index    field       next
======|======|=====
1           car        3
2           boat       4
3           house    2
4           rocket    0
__________________
1Work | WebMaster |
Reply With Quote
  #2 (permalink)  
Old 01-21-2006, 01:33 PM
WebProWorld Pro
 

Join Date: Sep 2005
Location: Manchester, UK
Posts: 257
mikesmith76 RepRank 0
Default

may be able to answer with more information, for a start what are you trying to achieve?
Reply With Quote
  #3 (permalink)  
Old 04-12-2006, 01:15 PM
WebProWorld Member
 

Join Date: Apr 2006
Posts: 31
sacx13 RepRank 0
Default Re: Are linked list with MySQL possible (advanced user only)

Quote:
Originally Posted by xhtml
For experts only :

Does any expert know how to make a MySQL request with only one (select and subselect) without using any loop with PHP ?
Sample data :
Code:
index    field       next
======|======|=====
1           car        3
2           boat       4
3           house    2
4           rocket    0

Something like that :


Code:
select * from table as t1 left join table as t2 on t2.field=t1.index;
???????????
This is what you want ?
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: , , , , ,



Thread Tools
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


Search Engine Optimization by vBSEO 3.2.0