我在SELECT
語句中使用我的序列時遇到了一些問題。SQL中的序列選擇
SELECT
c.cust_name,
c.site,
customer_id_seq.nextval
FROM
customer c
WHERE
c.customer_id IS NULL
ORDER BY
c.site_code ASC
;
是給我的錯誤:
- 00000 - "sequence number not allowed here" *Cause: The specified sequence number (CURRVAL or NEXTVAL) is inappropriate here in the statement. *Action: Remove the sequence number.
這也可能是一些明顯我做錯了,所以希望這將是一個簡單的答案。
這看起來像Oracle。是對的嗎?可能要添加標籤。 – JosephStyons 2009-08-07 14:47:09