【发布时间】:2023-03-17 11:50:01
【问题描述】:
为什么会出现错误?
--Q1
CREATE table Aorders (
Id INT IDENTITY NOT NULL,
CreatedDate Date NOT NULL,
BillingCountry varchar Not Null,
MerchId int Not null,
OrderStatus varchar Not null,
);
--Q2
select * from Aorders
--Q3 edited as suggested here but still get an error
插入订单(CreatedDate、BillingCountry、MerchId、OrderStatus) VALUES ('2001-01-01', 'Israel', 5 ,'Approved');
【问题讨论】:
-
您用于列 CreatedDate 的日期格式不正确。
标签: sql sql-server sql-insert