MySQL primer tutorial, MySQL basic syntax

Source: Internet
Author: User
The syntax of MySQL
The great thing that you do in MySQL is that "code" is very easy to read for humans, and not more difficult programming languages such as C or C + +. Only a handful of special characters and symbols must be set up for a MySQL query, the query includes the most complete English words!


Learning Strategy MySQL's
The MySQL language is not as complex as most programming languages, so the best approach is to learn with direct examples. As the focus of this tutorial is on combining MySQL and PHP, most examples are ready for you to copy, paste, and run on the Web server.

Uppercase query in MySQL
There are many keywords in MySQL, as well as good programming habits when using any of these words to use them. This helps to attract them from the rest of the code and makes them easier to read. Here is an example of MySQL query PHP written to retrieve all the data from a MySQL table named "Example".

$resulte = mysql_query ("SELECT * from TNAMEP")
This line of code is valid for PHP, but it also contains valid MySQL's. The text displayed between the quotes "the SELECT * from the example" is the MySQL code.

You may be able to tell "select" and "from" are keywords that MySQL uses in this query. Use them to let you tell a quick browse query that selects the datasheet.

You can view the full list of MySQL keyword lists to keep the MySQL word, but don't worry about them reciting. You can plan to be ruthless in MySQL for years and never use all the MySQL keywords.

Know at your own pace
When it's time to learn MySQL, it's best to take a lesson from it and stop when you're frustrated. Don't worry if you've spent one weeks finishing this tutorial. If you take the time to progress slowly, you will be more fully aware of the MySQL database system than if you cross it in a meeting.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.