PHP mysql indexing problem _php Foundation

Source: Internet
Author: User


Obviously this is a problem that any friend who uses MySQL will encounter.

Recall the original in the configuration environment mentioned in the MySQL GUI tool, yes, it is, you can find it in the http://www.mysql.com. Because Sunec is also only a program enthusiasts, far from the level of programmers, so with the help of some tools is still very necessary ~ believe some friends and I have the same ~

Create a table with a GUI tool, establish a REF field, set ref as the primary key, define the type int, and tick the Auto inc option. Well, the work on the MySQL side is over.

Then I'll give it to PHP. Add data to this table with the Insert command described in the previous topic, and note that you do not have to add the value of ref by yourself, because it was previously ticked on the Auto Inc option, and every time you add a record, ref is automatically generated and incremented in order, Is it possible to fulfill your needs?

In addition, starting from this topic, I put some technology into the PHP technology area, please pay attention!

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.