| | |
PL/SQL: ORA-00922: missing or invalid option
Please support our Oracle advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2008
Posts: 2
Reputation:
Solved Threads: 0
I am new at oracle and working on a small project. I am trying to find "[" in a field and produce from that point to the end of the field.
My code is as follows:
The error I am receiving:
Thanks in advance for any help available.
culbysl
My code is as follows:
Oracle Syntax (Toggle Plain Text)
DECLARE startPos PLS_INTEGER; endPos PLS_INTEGER; BEGIN SET startPos := (SELECT top 1(INSTR(description, '[', 1, 1)-1) FROM INSTRTEST); dbms_output.put_line(startPos); END;
The error I am receiving:
Oracle Syntax (Toggle Plain Text)
ORA-06550: line 5, COLUMN 5: PL/SQL: ORA-00922: missing OR invalid OPTION ORA-06550: line 5, COLUMN 1: PL/SQL: SQL Statement ignored 3. endPos PLS_INTEGER; 4. BEGIN 5. SET startPos := (SELECT top 1(INSTR(description, '[', 1, 1)-1) FROM INSTRTEST); 6. --endPos := (select len(description)FROM INSTRTEST) 7. dbms_output.put_line(startPos);
Thanks in advance for any help available.
culbysl
•
•
Join Date: Oct 2009
Posts: 1
Reputation:
Solved Threads: 0
0
#4 Oct 20th, 2009
hi i have error ora-00922(missing or invalid option) while creating this table
sql Syntax (Toggle Plain Text)
CREATE TABLE emp5 ( empno varchar2(6) CONSTRAINT che_emp CHECK(empno IN('A%','M%','P%','S%')), ename varchar2(10) CONSTRAINT en_nn NOT NULL, dob DATE CONSTRAINT dob_che CHECK(to_char(dob,'dd-mon-yyyy')<'01-jan-1983'), sex CHAR CONSTRAINT se_che CHECK(sex IN('m','f','M','F')), salary number(10,2) sal_che CHECK( salary BETWEEN 15000 AND 100000), CONSTRAINT pk_empno PRIMARY KEY(empno) );
Last edited by peter_budo; Oct 20th, 2009 at 7:05 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)
![]() |
Similar Threads
- Folder Option missing! (Windows NT / 2000 / XP)
- Oracle "ORA-00922" error (Database Design)
- Folder Option missing from Tools menu (Windows NT / 2000 / XP)
- oracle utlmail problem (Oracle)
- Helllppp..> <<invalid Syntax Error>> (Viruses, Spyware and other Nasties)
- Freeprodtb!! (Viruses, Spyware and other Nasties)
- Isearch and Hijackthis Log (Viruses, Spyware and other Nasties)
- Missing Spelling Option in Outlook Express (Windows Software)
- Missing delegate Option in Outlook Express (Windows Software)
Other Threads in the Oracle Forum
- Previous Thread: INSERT sql statement for DateTime
- Next Thread: outputting too many
| Thread Tools | Search this Thread |
2009predictions acquisition amazon.com bartz bernanke cia citrix cloudcomputing crm database dell economy editor enterprise enterprise2.0 enterprisesoftware federalreserve forbes hp ibm intellipedia internet larryellison layoffs linux loughridge mediawiki michaeljackson microsoft neverland nortel notebooks oil operatingsystem oracle palm rimm saas salesforce sap seagate socialcomputing sql sun sybase technologystocks virtualiron virtualization vmware wiki wikipedia xen yahoo zoho






