Li Wu:
Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.
Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Data,
data, Lingen on the data. You must be cautious about operating the database. Give the most bitter code here, and take a look at it, to have your own judgment. Meet the choice, or ashamed to ask.
mysql:5.5
Os:windows7 x64
Code and effects
Mysql> Create TableStudent ( -StdIdint not NULLAuto_incrementPrimary Key - ); Query OK,0Rows Affected (0.08sec) MySQL> descstudent;+-------+---------+------+-----+---------+----------------+|Field|Type| Null | Key | Default |Extra|+-------+---------+------+-----+---------+----------------+|StdId| int( One)|NO|Pri| NULL |Auto_increment|+-------+---------+------+-----+---------+----------------+1Rowinch Set(0.01sec) MySQL>
Tips
The primary key overlaps with the non-null, which means that the field is a primary key, so you don't have to write it.
MySQL, relational database management system, excellent, worth learning.
Learning resources: Itcast and Itheima video library + Pure Heart.
If you have public resources, can share to me, with your resources to learn also can.
Blog post is to watch the video, into thinking written. It's good that the teacher speaks well. Blog bad, is to give the most bitter not serious.
mysql5.5 Base CREATE Table ... Create non-nullable, primary key, self-growing fields