创建 Table 但在字段定义中出现语法错误
Creating a Table but getting Syntax error in field definition
Create Table Order_Line
(
Order_Num Char(5),
Item_Num Char(4),
Num_Ordered Decimal(3,0),
Quoted_Price Decimal(6,2),
Primary Key (Order_Num, Item_Num)
);
我正在使用数据库 class,我的任务是要求为订单行创建一个 table。当我 select 运行 创建 table 时,我在字段定义中遇到“语法错误”并且突出显示 DECIMAL
。我正在 Microsoft Access 中编写此查询。再一次,我什至没有 class 作为菜鸟,非常感谢有人帮助解释我在这方面做错了什么。在此先感谢 Stack overflow 社区。
您可以使用货币来了解此详细信息。
Create Table Order_Line
(
Order_Num Char(5),
Item_Num Char(4),
Num_Ordered Currency,
Quoted_Price Currency,
Primary Key (Order_Num, Item_Num)
);
货币就像十进制 (15,4)
我认为您原来的 sql 语句在以前版本的 Access 中是有效的。
手动查询设计器仍然允许您更改数字和大数字每个字段的小数位数。
Create Table Order_Line
(
Order_Num Char(5),
Item_Num Char(4),
Num_Ordered Decimal(3,0),
Quoted_Price Decimal(6,2),
Primary Key (Order_Num, Item_Num)
);
我正在使用数据库 class,我的任务是要求为订单行创建一个 table。当我 select 运行 创建 table 时,我在字段定义中遇到“语法错误”并且突出显示 DECIMAL
。我正在 Microsoft Access 中编写此查询。再一次,我什至没有 class 作为菜鸟,非常感谢有人帮助解释我在这方面做错了什么。在此先感谢 Stack overflow 社区。
您可以使用货币来了解此详细信息。
Create Table Order_Line
(
Order_Num Char(5),
Item_Num Char(4),
Num_Ordered Currency,
Quoted_Price Currency,
Primary Key (Order_Num, Item_Num)
);
货币就像十进制 (15,4)
我认为您原来的 sql 语句在以前版本的 Access 中是有效的。 手动查询设计器仍然允许您更改数字和大数字每个字段的小数位数。