मुझे SELECT
कथन के भीतर मेरे अनुक्रम का उपयोग करने में कोई समस्या है।एसक्यूएल के भीतर अनुक्रम
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.
यह शायद स्पष्ट कुछ मैं गलत कर रहा हूँ इसलिए उम्मीद है कि इस एक आसान जवाब होगा।
यह ओरेकल की तरह दिखता है। क्या वह सही है? शायद एक टैग जोड़ना चाहते हैं। – JosephStyons