Mysql getting started tutorial, basic mysql syntax

Source: Internet
Author: User
Tags keyword list mysql code

I want to get started with all the languages I want to learn. mysql is also the same as it is with basic syntax and data types. Let's take a look at the simple mysql tutorial.MySQL syntax
The great thing you do in MySQL is that the "code" is easy to read to humans, rather than harder programming languages such as C or C ++. Only a very small number of special characters and symbols must be used to create a MySQL query, including the most complete English word!


Learning Policy for MySQL
The MySQL language is not the same as most complex programming languages. Therefore, the best way is to learn and use examples directly. Since the focus of this tutorial is to combine MySQL and PHP, most of the examples are ready for you to copy, paste, and run on the Web server.

Query uppercase letters in MySQL
There are many MySQL keywords and good programming habits when using any of these words is to use them. This helps attract them from the rest of the code and make them easier to read. In the following example, MySQL queries all data written in PHP and names it "example" from a MySQL table ".

$ Resulte = mysql_query ("select * from tnamep ")
This line of code is effective PHP, but it also contains valid MySQL. The quotation "SELECT * from example" between the displayed text is the MySQL code.

You may tell "select" and "slave" are keywords, and MySQL is used here for query. They allow you to tell a quick query of the selected data table.

You can view the MySQL keyword list in the complete list to keep the MySQL words, but don't worry about them reciting them. You can plan to never use all MySQL keywords in MySQL for years without mercy.

Learn at your own pace
When MySQL learns, it is best to take a lesson of it and stop when you are frustrated. Don't worry, if you spend more than a week writing this tutorial. If you take the time to progress slowly, you will be more familiar with the MySQL database system than if you pass through it at a conference.

Related Article

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.