答案:用关键字“AUTO_INCREMENT” e.g. CREATE TABLE `NewTable` ( `rating` int(8) AUTO_INCREMENT , PRIMARY KEY (`rating`) );
其他:只知道sqlserver2005里面可以直接设置为标识列就行了
上一个:mysql 触发器的安全性?下一个:求解PHP+MySQL、ASP.net+sql、J2EE+sql、oracle等在学生信息管理系统中的应用情况