create database APU
create table STUDENT
(
Stud_Id varchar(50),
Name varchar (50),
Major varchar (50),
Age int identity not null
)
select*
from STUDENT
insert into STUDENT values ('TP10000','Jamal','Economy','21')
insert into STUDENT values ('TP15000','Putih','Communicatio','19')
insert into STUDENT values ('TP20000' , 'Bakar' ,'Economy', '25')
insert into STUDENT values ('TP25000' , 'Gibson','Management','24')
insert into STUDENT values ('TP35000', 'Rohaya','Computer Science','20')
insert into STUDENT values ('TP40000','Remi','Business','19')
create table student2
(
Stud_Id varchar(50),
Name varchar (50),
Major varchar (50),
Age int identity not null
)
select*
from STUDENT
select*
from student
when i execute this part
insert into STUDENT values ('TP10000','Jamal','Economy','21')
insert into STUDENT values ('TP15000','Putih','Communicatio','19')
insert into STUDENT values ('TP20000' , 'Bakar' ,'Economy', '25')
insert into STUDENT values ('TP25000' , 'Gibson','Management','24')
insert into STUDENT values ('TP35000', 'Rohaya','Computer Science','20')
insert into STUDENT values ('TP40000','Remi','Business','19')
我收到此错误请帮帮我
Msg 245,Level 16,State 1,Line 1转换时转换失败 varchar值' TP10000'数据类型int。