MySQL的自动递增字段来生成记录的唯一ID? [英] MySQL auto incremented field to generate unique ID for the record ?
本文介绍了MySQL的自动递增字段来生成记录的唯一ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
MySQL自动递增字段以为记录生成唯一ID?
更改表登录名添加uid int身份;(在SQL Server中)
我想在mysql
MySQL auto incremented field to generate unique ID for the record?
alter table login add uid int identity;(in SQL server)
i want same think in mysql
推荐答案
中使用同样的思路,使用 ^ ]关键字.
Use the AUTO_INCREMENT[^] keyword.
http://www.plus2net.com/sql_tutorial/mysql_auto_increment.php [ ^ ]
http://www.plus2net.com/sql_tutorial/sql_alter_table.php [ http://www.plus2net.com/asp-tutorial/sql-identity.php [ ^ ]
http://www.plus2net.com/sql_tutorial/mysql_auto_increment.php[^]
http://www.plus2net.com/sql_tutorial/sql_alter_table.php[^]
http://www.plus2net.com/asp-tutorial/sql-identity.php[^]
这篇关于MySQL的自动递增字段来生成记录的唯一ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文