473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error (ORA-00904) after i run for this command

CREATE TABLE ORDER_PHARMACY(
Ord_ID VARCHAR2(10)
CONSTRAINT ORDER_PHARMACY_Ord_ID_pk PRIMARY KEY,
CONSTRAINT Ord_ID_nn NOT NULL,
Ord_Date DATE DEFAULT SYSDATE
CONSTRAINT ORDER_PHARMACY_Ord_Date_nn NOT NULL,
Ord_Price VARCHAR2(10),
Ord_Qty NUMBER(10),
Emp_ID VARCHAR2(10)
CONSTRAINT ORDER_PHARMACY_Emp_ID_fk
REFERENCES EMPLOYEE(Emp_ID));
Sep 12 '10 #1
1 1708
dila puteh,

you have a syntax error (one comma too much) in the line
Expand|Select|Wrap|Line Numbers
  1. Ord_ID VARCHAR2(10) CONSTRAINT ORDER_PHARMACY_Ord_ID_pk PRIMARY KEY, CONSTRAINT Ord_ID_nn NOT NULL,
instead it should read
Expand|Select|Wrap|Line Numbers
  1. Ord_ID VARCHAR2(10) CONSTRAINT ORDER_PHARMACY_Ord_ID_pk PRIMARY KEY CONSTRAINT Ord_ID_nn NOT NULL,
  2.  
Sep 12 '10 #2

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

Similar topics

2
by: Barry Young | last post by:
I am using the following code to insert a row in an Oracle Database. strConnection = "Provider=OraOLEDB.Oracle;Data Source=MYDATABASE;User Id=SYSTEM;Password=******" Dim strMessage As String ...
1
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server...
0
by: Brian Lesker | Impulse Info Systems | last post by:
Keywords: Oracle 6i Citrix ORA-06508 Crash Problem descryption: Oracle (6i) application crashes in Citrix farm with error ORA-06508. HOWTO resolve:
1
by: 3xxx | last post by:
I start to learn the form now with oracle 9i environment (this URL appear after running menu in Oracle forms builder ==>>> program-> run form) ...
2
by: Sahar Madahian | last post by:
Hi! I try to insert value to a table column but I'v got this error 'ORA-00933: SQL command not properly ended' Can anyone help me please? insert into SHAMROCK.CAT_SALESPRODUCT...
2
by: amoldiego | last post by:
Hi I have encountered the error ORA-01536 . I have earlier grant sysdba to SCOTT & then I revoked the sysdba role from SCOTT a couple of days later. After that, I encountered the error...
2
by: trakal | last post by:
Hello all readers, I have a question concerning an error that i really want to understand. I have an application client (C#) that connect to an Oracle server. Normally, it work good but just this...
1
by: gowthams123 | last post by:
Dear All, Plz help me with this oracle form builder installation? I have installed SQL *PLUS Release 9.2.0.1.0 and then installed form builder 9.0.2.7.0. When i enter the following username...
4
by: narenshines | last post by:
Hi I am trying to update my table using this.. update tablename set sqlquery = 'select max(upd_rows) from tablename where data_center='***' and tab_abbrev='***'' where userid='12345'; ...
2
by: SREESHAK | last post by:
i am getting the erroe ORA:00933 sql command not properly ended ,for sqlStatement.executeUpdate( "INSERT INTO CLARITY.Z_INBOUND_AUTO_SCHEDULE(FILE_NAME, FILE_DATE, CREATED_DATE, MODIFIED_DATE,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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
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...

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.