摘要: 在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如: 由此可见,一旦把id设为auto_increment类型,mysql数据库会自动按递增的方式为主键赋值。 Sql Server 在MS SQLServer中,如果把表的主键设为identity类型, 阅读全文
posted @ 2016-07-05 15:26 yaoh371 阅读(401) 评论(0) 推荐(0) 编辑