<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013018" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013018</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075646</link>
    <description> &lt;p&gt;thanks!&lt;/p&gt;
 </description>
     <pubDate>Thu, 14 Dec 2000 02:53:37 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075646 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075621</link>
    <description> &lt;p&gt;Max,&lt;/p&gt;
&lt;p&gt;The SQL query still has to correspond with the connection object. So if your connection object uses a database called &quot;TEST&quot; and then you try a statement with &quot;USE NOT_TEST&quot; it will fail.&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Dec 2000 16:36:34 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1075621 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075600</link>
    <description> &lt;p&gt;can you connect to one DB in the connection string (like in ASP), then put &quot;USE db_name&quot; in the query and actually change DBs?&lt;br /&gt;
if so, would this change the connection for everything, or just that one query?&lt;/p&gt;
&lt;p&gt;this is interesting...&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 Dec 2000 21:48:33 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075600 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075576</link>
    <description> &lt;p&gt;Max,&lt;/p&gt;
&lt;p&gt;That syntax was for SQL Server. You&#039;re right, you don&#039;t have to specify the database with the USE statement, but you can, I was just trying to be thorough with that example.&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 Dec 2000 13:50:03 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1075576 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075565</link>
    <description> &lt;p&gt;Peter-&lt;br /&gt;
is that Access SQL syntax? or perhaps Perl?&lt;br /&gt;
I&#039;ve never seen the &lt;strong&gt;USE people&lt;/strong&gt; before. exept when at the command line for a mySQL DB.&lt;/p&gt;
&lt;p&gt;I work primarily with SQL Server 7 and ASP, and we specify the DB in the connection string. All at once.&lt;/p&gt;
&lt;p&gt;PHP (with mySQL) is similar to ASP in that you specify the DB before you ever execute a query. But with PHP, you first connect to the server, then select the DB.&lt;/p&gt;
 </description>
     <pubDate>Tue, 12 Dec 2000 04:46:18 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075565 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/table-joins#comment-1075538</link>
    <description> &lt;p&gt;PDavis,&lt;/p&gt;
&lt;p&gt;Joins can be done in different ways (and in different ways on different database servers) so it can get a little tricky.&lt;/p&gt;
&lt;p&gt;Lets say you had a database called People and a table called Person with the following columns:&lt;/p&gt;
&lt;p&gt;Person_ID&lt;br /&gt;
Person_FirstName&lt;/p&gt;
&lt;p&gt;and you had a table called Books with the following columns:&lt;/p&gt;
&lt;p&gt;Book_PersonID&lt;br /&gt;
Book_Name&lt;/p&gt;
&lt;p&gt;You could use a SQL statement like:&lt;/p&gt;
&lt;p&gt;USE People&lt;br /&gt;
SELECT p.Person_ID, p.Person_FirstName, b.Person_ID, b.Book_Name&lt;br /&gt;
FROM Person AS p LEFT OUTER JOIN Books AS b&lt;br /&gt;
ON p.Person_ID = b.Person_ID&lt;/p&gt;
&lt;p&gt;Or you could write a SQL statement like:&lt;/p&gt;
&lt;p&gt;USE People&lt;br /&gt;
SELECT p.Person_ID, p.Person_FirstName, b.Person_ID, b.Book_Name&lt;br /&gt;
FROM Person AS p, Books AS b&lt;br /&gt;
WHERE p.Person_ID *= b.Person_ID&lt;/p&gt;
&lt;p&gt;Both those queries would return the same recordset.&lt;/p&gt;
 </description>
     <pubDate>Mon, 11 Dec 2000 20:43:35 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1075538 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
