473,671 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

missing right parenthesis

14 New Member
hi everybody,
by creating my employee table ,i've gotten a missing right parenthesis error but i don't know why.Could please help me to find out the error.

SQL> CREATE TABLE EMPLOYEE
2 (emplNo INT PRIMARY KEY,
3 emplName VARCHAR(20) NOT NULL,
4 emplStartDate DATE TIME,
5 emplStatus VARCHAR(20),
6 dprtNo INT);
emplStartDate DATE TIME,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
Nov 20 '06 #1
7 6773
milonov
32 New Member
hi

error is here: emplStartDate DATE TIME
^^^^^^^^^^^^
no such type, change to emplStartDate DATE and you'll feel happiness :)

Best Regards,
Michael Milonov
http://www.snotratech.com

hi everybody,
by creating my employee table ,i've gotten a missing right parenthesis error but i don't know why.Could please help me to find out the error.

SQL> CREATE TABLE EMPLOYEE
2 (emplNo INT PRIMARY KEY,
3 emplName VARCHAR(20) NOT NULL,
4 emplStartDate DATE TIME,
5 emplStatus VARCHAR(20),
6 dprtNo INT);
emplStartDate DATE TIME,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
Nov 20 '06 #2
bazubwabo
14 New Member
hi guys,
Could u please to help me again by correcting the error,eventuall y i didn't get how to correct the error.
Thanks
Nov 20 '06 #3
milonov
32 New Member
CREATE TABLE EMPLOYEE
(emplNo INT PRIMARY KEY,
emplName VARCHAR(20) NOT NULL,
emplStartDate DATE,
emplStatus VARCHAR(20),
dprtNo INT);

that's all.

hi guys,
Could u please to help me again by correcting the error,eventuall y i didn't get how to correct the error.
Thanks
Nov 20 '06 #4
bazubwabo
14 New Member
hi guys ,
thanks a lot i've found out the error .

regards,
bazubwabo Jean Bertrand
IT student at Fontys University
Nov 20 '06 #5
bazubwabo
14 New Member
hi,
i've tried also to insert values on employee table but however i've found some erros,if by the way you have something for me you can help me to correct them.

1)SQL> INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7);
INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7)
*
ERROR at line 1:
ORA-01861: literal does not match format string

2)SQL> INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21);
INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21)
*
ERROR at line 1:
ORA-01847: day of month must be between 1 and last day of month

3)SQL> INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7);
INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7)
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Thanks for your attention
Nov 20 '06 #6
milonov
32 New Member
1) INSERT INTO EMPLOYEE VALUES (123,'RENE', to_date('2003/09/01', 'yyyy/mm/dd'), NULL ,7);

2) INSERT INTO EMPLOYEE (emplNo, emplName, dprtNo) VALUES (110,'MTENTHIJE ', 21);

3) INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ', to_date('01-SEP-2003', 'dd-mon-yyyy'), NULL,7);

Best Regards,
Michael Milonov
http://www.snotratech. com

hi,
i've tried also to insert values on employee table but however i've found some erros,if by the way you have something for me you can help me to correct them.

1)SQL> INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7);
INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01', ' ',7)
*
ERROR at line 1:
ORA-01861: literal does not match format string

2)SQL> INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21);
INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21)
*
ERROR at line 1:
ORA-01847: day of month must be between 1 and last day of month

3)SQL> INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7);
INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7)
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Thanks for your attention
Nov 21 '06 #7
bazubwabo
14 New Member
Thanks a lot for your help .
Regards ,
bertrand
Nov 21 '06 #8

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

Similar topics

0
976
by: chenyu468 | last post by:
Hi, I am using (vc++) of vs.net 2003 for development. In the source code, there are too many right parenthesis in one section. I want to test which left parenthesis for one specified parenthesis. How should I do? Thank you in advance. kind regards chenyu
1
2428
by: kuzen | last post by:
Hi guys, Could you plz check this code out and tell what the problem is. Thanks in advance CREATE TABLE RESERVATIONS ( RESERVATION_ID NUMBER(5), RENTER NUMBER(6), CAR_TYPE NUMBER(1), START_DATE DATE DEFAULT SYSDATE, FINISH_DATE DATE, TO_PAY NUMBER(6),
2
2526
by: isaacr | last post by:
hi everyone. im new here and it looks like a good place to get some help with school. basically im currently trying to write a program with c++ on a program called Turbo C_5 (i think). what i am trying to do is write a program that will print four columns each with a heading that will have field of fifteen characters. in the first column is the integer in the second is its square in the third is its cube and in the fourth is its square root....
2
3360
by: keokepa | last post by:
hi, i got this missing right parenthesis error while trying to create a table and i'm not too sure where i went wrong could someone point out my mistakes? this is what i had typed into Oracle SQL developer CREATE TABLE PROPERTYFORRENT (PROPERTYNO VARCHAR2(5) NOT NULL, STREET VARCHAR2(25) NOT NULL, AREA VARCHAR2(15),
3
4716
by: Thakur vikas | last post by:
when we run the query then we got ": (Error): ORA-00907: missing right parenthesis" what may be the error?
5
6458
by: sugumar1985 | last post by:
select * from test where sal in ( case sal when (sal < 5000) and (sal > 2000) then 2000 else 3000 end) SQL> / when (sal<5000 and sal>2000) then 2000 * ERROR at line 2: ORA-00907: missing right parenthesis
1
3394
karlectomy
by: karlectomy | last post by:
Hi all, I'm trying to run this table creation script but I run into the ORA-00907 error: missing right parenthesis. Perhaps someone might know where I am going wrong? CREATE TABLE RADLEX.radlinks ( PID varchar(30) NOT NULL, CID varchar(30) NOT NULL, relation_type varchar(25) NOT NULL, preferred tinyint(1),
1
3464
by: ozarka | last post by:
This select statement works and gives me True/False in RC33 column however the second statement gives me following error. Any idea? odbc--call failed. ora-00907: missing right parenthesis - - - this on works - - - SELECT tblAccount.Acct_Num, tblAccount.STATUS, tblAccount.RC1, tblAccount.RC_2, tblAccount.RC_3, 33 In (,,) RC33 FROM tblAccount;
4
5394
by: dbrother | last post by:
Hello All, I've been plugging away at testing some VBA SQL that executes when a user clicks a button from a 'custom query' form. The user has lots of options as to what parameters should be included in the query, so there might be a better way to handle the syntax here. My main concern right now is just possible getting a fresh set of eyes on the VBA to see what I'm missing. I'm using the form's textbox field txtKitNum (strKit) to test...
0
8483
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8927
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8825
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8676
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6237
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5703
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4416
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2062
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.