2 回答

波斯汪
TA貢獻1811條經驗 獲得超4個贊
怎么兩個都是 UTF-8 ,哪里寫錯了?UTF-8 和 UTF8 是一樣的意思,一般情況下如果是你把這個當成參數傳進程序時需要保證寫正確了,一般來說如果不認識 JRE 會報告錯誤的。

30秒到達戰場
TA貢獻1828條經驗 獲得超6個贊
sql語句中假如default設置的是默認值,當不顯示插入字段時,可以默認插入設置的默認值.
例如建立學生信息表Student,同時設置學號StudentNo為主鍵,如下:
create table Student(
StudentNo int not null primary key,
StudentName nvarchar(20) not null
?。?br/> 也可以先建學生信息表Student,然后為學號StudentNo添加主鍵,如下:
1.建學生信息表Student
create table Student(
StudentNo int not null,
StudentName nvarchar(20) not null
)
2.為學號StudentNo添加主鍵
alter table Student //注釋:修改學生信息表Student
add constraint PK_StudentNo primary key (StudentNo) //注釋:為StudentNo添加主鍵
添加回答
舉報
0/150
提交
取消