Create database Gestion_Etudiant
use Gestion_Etudiant
Create table Etudiant(
idE int primary key identify,
Nom varchar(50),
Prenom varchar(50),
Moyenne float
)
Create Table Module(
idM int primary key identify,
Libelle varchar(50),
Coefficient int
)
我的問題是: 如何在這些表中添加自動增量ID,因爲「識別」不起作用?如何在這些表中添加自動增量標識,因爲「標識」不起作用?
我用SQL管理服務器2008'' –
什麼是「不工作」的意思,到底是什麼? – OldProgrammer
拼寫有所不同。應該是['identity'](https://msdn.microsoft.com/en-us/library/ms186775.aspx),而不是'identify'。 – trincot