<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Quick Solution Providers &#187; Mysql</title>
	<atom:link href="http://www.quicksolutionproviders.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quicksolutionproviders.com</link>
	<description>Complete Solution for your problems under one roof</description>
	<lastBuildDate>Sun, 22 Aug 2010 08:23:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How can I fetch data from one database on a server and store them in other database on another server using PHP?</title>
		<link>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/</link>
		<comments>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:17:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[transfer data]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=332</guid>
		<description><![CDATA[How can we transfer data from one database to another]]></description>
			<content:encoded><![CDATA[<p>Many times we need to transfer data from one database exists on a server to another database exists on another server ,in that case we can use fourth parameter of mysql_connect function which is an optional parameter. If fourth parameter is true then it will create a new link for another database connection even if we have created database connection earlier with same detail with same database or with another database. Lets discuss how it works by an example.<br />
Function syntax:<br />
<b>mysql_connect ( [string $server [, string $username [, string $password [, bool $new_link [, int $client_flags]]]]] )</b></p>
<p>Now Connect database1 using host, username and password as given below<br />
<b>$db1 = mysql_connect(”host”,”user”,”pwd”)<br />
mysql_select_db(&#8217;db1name&#8217;, $db1);<br />
Fire a query on db1<br />
$res1 = mysql_query(”query”,$db1);</b></p>
<p>Connect database2 using host, username and password and include fourth parameter true as given below<br />
<b>$db2 = mysql_connect(”host”,”user”,”pwd”, true)<br />
mysql_select_db(&#8217;db2name&#8217;, $db2);<br />
Fire a query on db2<br />
$res2 = mysql_query(”query”,$db2);</b></p>
<p>Now both link will remain live.If you will not use fourth parameter than setting of $db1 will be overwrite by $db2 so you can not use both objects without using this fourth parameter as true.Now after using fourth parameter you can use both database1 and database2 on same page.You can fetch data from first database and than insert that data in second database .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/php/how-can-i-retrieve-values-from-one-database-server-and-store-them-in-other-database-server-using-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Left Outer Join</title>
		<link>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 12:21:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[fetch]]></category>
		<category><![CDATA[inner join]]></category>
		<category><![CDATA[join]]></category>
		<category><![CDATA[joins]]></category>
		<category><![CDATA[left join]]></category>
		<category><![CDATA[left outer join]]></category>
		<category><![CDATA[mysql join]]></category>
		<category><![CDATA[mysql joins]]></category>
		<category><![CDATA[records]]></category>
		<category><![CDATA[right join]]></category>
		<category><![CDATA[right outer join]]></category>
		<category><![CDATA[self join]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=270</guid>
		<description><![CDATA[Joins are very interesting topic in mysql.In my 4 years exp. i feel that every body knows about joins (experts and freshers) but freshers use joins very few.This may be because of their low thinking capability in starting or may be they find joins more typical then their local logic.Maximum beginners try to put their [...]]]></description>
			<content:encoded><![CDATA[<p>Joins are very interesting topic in mysql.In my 4 years exp. i feel that every body knows about joins (experts and freshers) but freshers use joins very few.This may be because of their low thinking capability in starting or may be they find joins more typical then their local logic.Maximum beginners try to put their own logic rather then joins.</p>
<p>Today we will talk about left outer join .Not very common join but very effective join.<br />
Suppose you have 2 tables. First &#8220;table1&#8243; with 2 fields &#8216;id&#8217; and &#8216;name.&#8217; . Second &#8220;table2&#8243; with 2 fields &#8216;id&#8217; and &#8217;salary&#8217;.In table1 &#8220;id&#8221; is primary key and in table2 field &#8220;id&#8221; is foreign key.</p>
<p><span id="more-270"></span></p>
<p><strong>Suppose structure for 2 tables are like this:<br />
Table1:                                                        Table2:<br />
id       name                                                id       salary<br />
&#8212;&#8212;&#8212;&#8212;&#8211;                                                  &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1         aa                                                     2        2000<br />
2          bb                                                   5         3000<br />
3          cc                                                   NULL     NULL<br />
4          cc<br />
5          cc<br />
6          cc<br />
7          cc<br />
8          cc<br />
9          cc<br />
10          cc</strong></p>
<p>Now you want to fetch all records from table1 <strong>where id in table1 is not equal to id from table2 means we have to fetch records from both table1 where table1.id!=table2.id. One important thing about table2 that there may be null in id column.</strong><br />
Lot of programmers will try to do this by their logic means they will not use joins but try to fetch records saperatly from both tables and then make array and then write a logic to remove duplicate entries from array and then again run a query to fetch records for ids exists in final array.This is my thinking , may be they use another logic.</p>
<p>This process will take time to write whole code , also this will take extra space in file and we have to write more queries to fetch records.<br />
Now here our left outer join is very effective solution.Using left outer join only single query will fetch all the records according to our need.<br />
Here is the query:<br />
&#8220;select table1.* from table1 LEFT OUTER JOIN table2 ON table1.id = table2.id WHERE table2.id IS NULL&#8221;</p>
<p><strong>This will give you result like this.<br />
Table1:<br />
id       name<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1         aa<br />
3          cc<br />
4          cc<br />
6          cc<br />
7          cc<br />
8          cc<br />
9          cc<br />
10          cc</strong></p>
<p>This will give me a list off all the records that are in table1 but don&#8217;t have an entry in table2.</p>
<p>Just use this join and it will save your time and space.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/mysql-left-outer-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to insert data from one table to another table in mysql</title>
		<link>http://www.quicksolutionproviders.com/mysql/how-to-insert-one-table-field-into-other/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/how-to-insert-one-table-field-into-other/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:12:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=112</guid>
		<description><![CDATA[To Insert field values from one table to another in mysql use this simple query
INSERT INTO tablename1 (field1,field2,&#8230;.,fieldn) SELECT field1,field2,&#8230;.,fieldn FROM tablename2 WHERE condition
]]></description>
			<content:encoded><![CDATA[<p>To Insert field values from one table to another in mysql use this simple query</p>
<p>INSERT INTO tablename1 (field1,field2,&#8230;.,fieldn) SELECT field1,field2,&#8230;.,fieldn FROM tablename2 WHERE condition</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/how-to-insert-one-table-field-into-other/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>concat function in mysql</title>
		<link>http://www.quicksolutionproviders.com/mysql/concat-function-in-mysql/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/concat-function-in-mysql/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:09:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=110</guid>
		<description><![CDATA[CONCAT function in mysql is used to concat two strings.
For ex. CONCAT(&#8217;firstname&#8217;,&#8217; lastname&#8217;);
This functoin will concate this two word and create a single word.
Uses:
SELECT concat(&#8217;firstname&#8217;,'  &#8216;, &#8216;lastname&#8217;) AS name FROM tablename .
you can concat many words as you want.In the example above we also concated a space between firstname and lastname to seprate them
]]></description>
			<content:encoded><![CDATA[<p>CONCAT function in mysql is used to concat two strings.</p>
<p>For ex. CONCAT(&#8217;firstname&#8217;,&#8217; lastname&#8217;);</p>
<p>This functoin will concate this two word and create a single word.</p>
<p>Uses:</p>
<p>SELECT concat(&#8217;firstname&#8217;,'  &#8216;, &#8216;lastname&#8217;) AS name FROM tablename .</p>
<p>you can concat many words as you want.In the example above we also concated a space between firstname and lastname to seprate them</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/concat-function-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different text fields in Mysql and their field size</title>
		<link>http://www.quicksolutionproviders.com/mysql/mysql-text-field-size/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/mysql-text-field-size/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:03:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[bytes]]></category>
		<category><![CDATA[text field]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=108</guid>
		<description><![CDATA[In mysql there are three type of text fields with different length
1. Text  = 65000 Bytes.
2. Medium text = 16 million bytes.
3. Long text = 4 trilian bytes.
]]></description>
			<content:encoded><![CDATA[<p>In mysql there are three type of text fields with different length</p>
<p>1. Text  = 65000 Bytes.</p>
<p>2. Medium text = 16 million bytes.</p>
<p>3. Long text = 4 trilian bytes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/mysql-text-field-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the difference between mysql_connect() and mysql_pconnect() ?</title>
		<link>http://www.quicksolutionproviders.com/mysql/mysql-questions-and-answers/</link>
		<comments>http://www.quicksolutionproviders.com/mysql/mysql-questions-and-answers/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 19:35:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://www.quicksolutionproviders.com/?p=15</guid>
		<description><![CDATA[mysql_pconnect() makes a persistent connection to the database which means a SQL link that do not close when the execution of your script ends.But when you make a connection with mysql_connect then sql link will be automatically close after the execution of your script.
]]></description>
			<content:encoded><![CDATA[<p>mysql_pconnect() makes a persistent connection to the database which means a SQL link that do not close when the execution of your script ends.But when you make a connection with mysql_connect then sql link will be automatically close after the execution of your script.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quicksolutionproviders.com/mysql/mysql-questions-and-answers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
