473,503 Members | 5,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help Error 0922

2 New Member
Below is what I input into SQL Plus, I cannot determine why I am recieving this error. Any help is appreciated!


SQL> CREATE TABLE
2 Insurance_Info
3 (License_No varchar(20) primary
4 Policy_No varchar(30) alternate
5 Ins_Carrier varchar(50),
6 Ins_Address varchar(50),
7 Ins_City varchar(30),
8 Ins_State varchar(2),
9 Ins_Zip varchar(10),
10 Type_of_Coverage varchar(30),
11 Years_W_Carrier varchar(10),
12 Amount_Per_Occur varchar(20),
13 Aggreg_Amount varchar(20),
14 Effective_Date varchar(10),
15 Insur_Exp_Date varchar(10),
16 Claims_Made varchar(10),
17 Prev_Ins_Carrier varchar(50),
18 Prev_Ins_Carrier_Address varcha
19 Prev_Ins_Carrier_City varchar(3
20 Prev_Ins_Carrier_State varchar(
21 Prev_Ins_Carrier_Zip varchar(10
22 Prev_Ins_Type_Coverage varchar(
23 Prev_Ins_Policy_No varchar(30),
24 Prev_Years_W_Carrier varchar(10
25 Prev_Amount_Per_Occur varchar(2
26 Prev_Aggreg_Amount varchar(20),
27 Prev_Effective_Date varchar(10)
28 Prev_Insur_Exp_Date varchar(10)
29 Prev_Claims_Made varchar(10),
30 ADDED_TO_FILE_DATE varchar(10),
31 ADD_USERID varchar(10),
32 LAST_EDIT_DATE varchar(10))
33
SQL>
SQL> /
(License_No varchar(20) primary key,
*
ERROR at line 3:
ORA-00922: missing or invalid option
Jul 23 '07 #1
3 3570
debasisdas
8,127 Recognized Expert Expert
To whom do you expect to add commas , and closing parenthesis to your code.

silly syntax error.....
Jul 23 '07 #2
Dfuga
2 New Member
To whom do you expect to add commas , and closing parenthesis to your code.

silly syntax error.....
What???? if you are saying I need commas after lines 3 and 4, I know, it has them. When I did a cut and paste they just did not appear here, they are in the code in SQL. I am still recieving the error. I will attempt to repost the code as I see other syntax errors.

SQL> CREATE TABLE
2 Insurance_Info
3 (License_No varchar(20) primary key,
4 Policy_No varchar(30) alternate key,
5 Ins_Carrier varchar(50),
6 Ins_Address varchar(50),
7 Ins_City varchar(30),
8 Ins_State varchar(2),
9 Ins_Zip varchar(10),
10 Type_of_Coverage varchar(30),
11 Years_W_Carrier varchar(10),
12 Amount_Per_Occur varchar(20),
13 Aggreg_Amount varchar(20),
14 Effective_Date varchar(10),
15 Insur_Exp_Date varchar(10),
16 Claims_Made varchar(10),
17 Prev_Ins_Carrier varchar(50),
18 Prev_Ins_Carrier_Address varchar(100),
19 Prev_Ins_Carrier_City varchar(30),
20 Prev_Ins_Carrier_State varchar(2),
21 Prev_Ins_Carrier_Zip varchar(10)
22 Prev_Ins_Type_Coverage varchar(50),
23 Prev_Ins_Policy_No varchar(30),
24 Prev_Years_W_Carrier varchar(10),
25 Prev_Amount_Per_Occur varchar(20),
26 Prev_Aggreg_Amount varchar(20),
27 Prev_Effective_Date varchar(10),
28 Prev_Insur_Exp_Date varchar(10),
29 Prev_Claims_Made varchar(10),
30 ADDED_TO_FILE_DATE varchar(10),
31 ADD_USERID varchar(10),
32 LAST_EDIT_DATE varchar(10))
33 /
(License_No varchar(20) primary key,
*
ERROR at line 3:
ORA-00922: missing or invalid option
Jul 23 '07 #3
debasisdas
8,127 Recognized Expert Expert
use the following code

Expand|Select|Wrap|Line Numbers
  1. create table Insurance_Info
  2. (
  3. License_No varchar(20) primary key,
  4. Policy_No varchar(30) ,
  5. Ins_Carrier varchar(50),
  6. Ins_Address varchar(50),
  7. Ins_City varchar(30),
  8. Ins_State varchar(2),
  9. Ins_Zip varchar(10),
  10. Type_of_Coverage varchar(30),
  11. Years_W_Carrier varchar(10),
  12. Amount_Per_Occur varchar(20),
  13. Aggreg_Amount varchar(20),
  14. Effective_Date varchar(10),
  15. Insur_Exp_Date varchar(10),
  16. Claims_Made varchar(10),
  17. Prev_Ins_Carrier varchar(50),
  18. Prev_Ins_Carrier_Address varchar(100),
  19. Prev_Ins_Carrier_City varchar(30),
  20. Prev_Ins_Carrier_State varchar(2),
  21. Prev_Ins_Carrier_Zip varchar(10),
  22. Prev_Ins_Type_Coverage varchar(50),
  23. Prev_Ins_Policy_No varchar(30),
  24. Prev_Years_W_Carrier varchar(10),
  25. Prev_Amount_Per_Occur varchar(20),
  26. Prev_Aggreg_Amount varchar(20),
  27. Prev_Effective_Date varchar(10),
  28. Prev_Insur_Exp_Date varchar(10),
  29. Prev_Claims_Made varchar(10),
  30. ADDED_TO_FILE_DATE varchar(10),
  31. ADD_USERID varchar(10),
  32. LAST_EDIT_DATE varchar(10)
  33. )
  34.  

what is that alternate key in oracle syntax as specified in your code. ???
Jul 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
4303
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
5
2123
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
9
3002
by: YZK | last post by:
Hello. I'm not a Web developer, just a user, and I think I may have somehow messed myself up majorly. I'm not quite sure how. Right now, javascript used by websites I go to either does not work at...
8
5451
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
4323
by: Dave | last post by:
I am having problems accessing DTS after install SP4 and was wondering if someone could offer some advice. I installed SP4 and got the following error after it competed. Unable to write to...
6
1743
by: Jax | last post by:
I have Visual Studio 2002 Standard Edition. It has been working fine up to a point and now i'm at that point. Due to the limitations of the edition i am not using any of my own .dll's and instead...
6
4959
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
1
3694
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
12
2428
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7258
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.