[英]in MySql Which is More faster and efficient, Manual Sequence or Auto Increment?
Which is More faster and efficient Manual Sequence or MySql Auto Increment? 哪个是更快更有效的手动序列或MySql自动增量? And which one we should use ?
而我们应该使用哪一个呢? And which one is good for more efficient queries.
哪一种适合更有效的查询。
Create MySQL AUTO_INCREMENT column 创建MySQL AUTO_INCREMENT列
CREATE TABLE xyz
(
ID int NOT NULL AUTO_INCREMENT,
PRIMARY KEY (ID)
)
The AUTO_INCREMENT attribute can be used to generate a unique identity By default.
默认情况下,可以使用AUTO_INCREMENT属性生成唯一标识。 The starting value for AUTO_INCREMENT is 1, and it will increment by 1 for each new record.
AUTO_INCREMENT的起始值为1,对于每个新记录,它将增加1。 for new rows
对于新行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.