插入表值(int,int,time,time)Sql Server

时间:2017-01-08 22:48:06

标签: sql-server

这是我创建的表格,我想在其中插入一个值

Create Table JunctionRS(
id_r int foreign key references Rute(id_r),
id_s int foreign key references Statii(id_s),
constraint id_j primary key (id_r,id_s),
arrival time,
departure time);




insert into JunctionRs values(1 , 2 , 21:45:00 ,22:00:00 );

1 个答案:

答案 0 :(得分:0)

为您的时间添加一些引用

insert into JunctionRS values(1 , 2 , '21:45:00','22:00:00' );