| | |
use more than two tables
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
you can use joins for this:
this is simple....
Have look on this url follows:
http://www.tizag.com/mysqlTutorial/mysqljoins.php
my sql Syntax (Toggle Plain Text)
"select * from table1 as t1,table2 as t2 where ti.id=t2.id";
this is simple....
Have look on this url follows:
http://www.tizag.com/mysqlTutorial/mysqljoins.php
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
thanks.i tried this way
MySQL Syntax (Toggle Plain Text)
SELECT article.id,article.ar_title,article.owner,article.ar_date,addinfo.pat,login.username FROM article LEFT JOIN ( login,addinfo ) ON ( login.id = article.owner AND login.id = addinfo.userid AND article.owner = addinfo.userid ) WHERE article.owner =17 LIMIT 0 , 30 ORDER BY article.ar_date DESC
![]() |
Similar Threads
- Layout Tables to CSS (HTML and CSS)
- Large and tables/cells..how? (HTML and CSS)
- Internal Data Tables (Visual Basic 4 / 5 / 6)
- Loing authentication fields from 2 tables? (ASP)
- web design: tables versus divs (HTML and CSS)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the MySQL Forum
- Previous Thread: Query...errr...query
- Next Thread: MySQL num rows error
Views: 943 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm data database design developer development distinct drupal dui ec2 eliminate email enterprise eudora facebook form foss gartner gnu government gpl groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier journalism keyword keywords kickfire laptop law legal license licensing linux managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqlindex mysqlinternalqueries mysqlsearch news opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign remove reorderingcolumns resultset search select simpledb sourcecode spotify sql statement sugarcrm syntax techsupport thunderbird transparency update virtualization






