| | |
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
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 agplv3 alfresco amazon api artisticlicense aws bizspark changingprices communityjournalism contentmanagement contractors copyright count crm data database design developer development distinct drupal dui ec2 eliminate email enter enterprise error facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip join journalism keyword kickfire laptop legal license licensing linux maintenance mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign remove saas search select sharepoint simpledb sourcecode spotify sql statement sugarcrm techsupport thunderbird update virtualization






