Home > Article > Backend Development > php mysql index problem_PHP tutorial
Obviously this is a problem that everyone who uses MySQL will encounter.
Recall the MySQL GUI tool mentioned when configuring the environment. By the way, that’s it. You can find it at http://www.mysql.com. Because sunec is just a program enthusiast and is far from the level of a programmer, it is still necessary to use the help of some tools ~ I believe some friends are like me ~
Use GUI tools to create tables and create REF field, set REF as the primary key, define the type as int, and check the AUTO INC option. Okay, the work on the MySQL side is over.
Next, it’s over to PHP. Use the insert command introduced in the previous topic to add data to this table. Note that you don’t need to add the REF value yourself because the AUTO INC option was ticked before. Then, every time a record is added, REF will be automatically generated, and it will increase in order. In this way, will it be able to achieve your needs?
In addition, starting from this topic, I have summarized some technologies into the PHP technology area, so please pay attention!