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
7 6773
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
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
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
hi guys ,
thanks a lot i've found out the error .
regards,
bazubwabo Jean Bertrand
IT student at Fontys University
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
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
Thanks a lot for your help .
Regards ,
bertrand
Sign in to post your reply or Sign up for a free account.
Similar topics |
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
|
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),
|
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....
|
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),
|
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?
| |
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
|
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),
|
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;
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |