【发布时间】:2013-03-24 22:41:36
【问题描述】:
我相信问题出在quoted price 旁边的( 附近,因为我收到Incorrect syntax near '(' 的语法错误。对此的任何帮助将不胜感激。使用 Microsoft SQL-Server Management Studio。
create view order_total as
select order_num
sum (quoted_price * num_ordered) as total_amount
from order_line;
【问题讨论】:
-
select order_num, sum... -
第一列后缺少逗号 (
order_num)。
标签: sql sql-server syntax syntax-error