PHP MySQL ਇੰਟਰਡਿਊਜ਼

MySQL ਸਭ ਤੋਂ ਪ੍ਰਸਿੱਧ ਖੁੱਲ੍ਹੀ ਤਾਲਿਕਾ ਸੇਵਾ ਹੈ。

ਕੀ MySQL ਹੈ?

MySQL ਇੱਕ ਡਾਟਾਬੇਸ ਹੈ। ਡਾਟਾਬੇਸ ਨੂੰ ਸੂਚਨਾ ਸਟੋਰੇਜ ਦੀ ਸਰੂਪ ਨਿਰਧਾਰਿਤ ਕਰਦਾ ਹੈ。

ਡਾਟਾਬੇਸ ਵਿੱਚ, ਕੁਝ ਤਾਲਿਕਾਵਾਂ ਹੁੰਦੀਆਂ ਹਨ। ਹੈਲਾਈਟ ਤਾਲਿਕਾਵਾਂ, ਡਾਟਾਬੇਸ ਤਾਲਿਕਾਵਾਂ ਵਿੱਚ ਰੂਪਾਂਤਰਣ, ਕੋਲਾਂ ਅਤੇ ਕੋਣੇ ਰੱਖਦੀਆਂ ਹਨ。

ਸ਼੍ਰੇਣੀਬੱਧ ਸਟੋਰੇਜ ਸੂਚਨਾ ਸਮੇਂ, ਡਾਟਾਬੇਸ ਖੁਸ਼ਹਾਲ ਹੁੰਦਾ ਹੈ। ਇੱਕ ਕੰਪਨੀ ਦਾ ਡਾਟਾਬੇਸ ਇਹ ਤਾਲਿਕਾਵਾਂ ਰੱਖ ਸਕਦਾ ਹੈ: "Employees", "Products", "Customers" ਅਤੇ "Orders"。

ਡਾਟਾਬੇਸ ਤਾਲਿਕਾ

ਡਾਟਾਬੇਸ ਜਾਂਤ੍ਰਨ ਆਮ ਤੌਰ 'ਤੇ ਇੱਕ ਜਾਂ ਵੱਧ ਤਾਲਿਕਾਵਾਂ ਰੱਖਦੇ ਹਨ। ਹਰੇਕ ਤਾਲਿਕਾ ਇੱਕ ਨਾਮ (ਜਿਵੇਂ ਕਿ "Customers" ਜਾਂ "Orders") ਰੱਖਦੀ ਹੈ। ਹਰੇਕ ਤਾਲਿਕਾ ਨੂੰ ਅਤੇ ਰਿਕਾਰਡ (ਰੂਪਾਂਤਰਣ) ਦੇ ਨਾਲ ਰੱਖਦੀ ਹੈ。

ਇੱਕ "Persons" ਨਾਮ ਦੀ ਤਾਲਿਕਾ ਦਾ ਇੱਕ ਉਦਾਹਰਣ ਹੇਠਾਂ ਦਿੱਤਾ ਗਿਆ ਹੈ:

LastName FirstName Address City
Hansen Ola Timoteivn 10 Sandnes
Svendson Tove Borgvn 23 Sandnes
Pettersen Kari Storgt 20 Stavanger

ਉੱਪਰੋਕਤ ਸਪਰਸ਼ਦ ਤਾਲਿਕਾ ਤਿੰਨ ਰਿਕਾਰਡਾਂ (ਹਰੇਕ ਰਿਕਾਰਡ ਇੱਕ ਵਿਅਕਤੀ ਹੈ) ਅਤੇ ਚਾਰ ਕੋਲਾਂ (LastName, FirstName, Address ਅਤੇ City) ਰੱਖਦੀ ਹੈ。

Query

A query is a question or request.

Through MySQL, we can query specific information from the database and get the returned record set.

Please see the following query:

SELECT LastName FROM Persons

The above query selects all data from the LastName column in the Persons table and returns a record set similar to this:

LastName
Hansen
Svendson
Pettersen

Download MySQL Database

If your PHP server does not have a MySQL database, you can download MySQL here:http://www.mysql.com/downloads/index.html

Facts About MySQL Database

One great feature of MySQL is that it can be scaled to support embedded database applications. Perhaps for this reason, many people believe that MySQL can only handle small and medium-sized systems.

In fact, for websites that support large data and high traffic, MySQL is the de facto standard database (such as Friendster, Yahoo, Google). This address provides an overview of companies that use MySQL:http://www.mysql.com/customers/.