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

Home Posts Topics Members FAQ

Missing right parenthesis

karlectomy
64 New Member
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?

Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE RADLEX.radlinks (
  2.   PID varchar(30) NOT NULL,
  3.   CID varchar(30) NOT NULL,
  4.   relation_type varchar(25) NOT NULL,
  5.   preferred tinyint(1),
  6.   PRIMARY KEY  (PID,CID,relation_type)
  7. )DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  8.  
Best Wishes,

karl
Dec 18 '07 #1
1 3390
amitpatel66
2,367 Recognized Expert Top Contributor
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?

Expand|Select|Wrap|Line Numbers
  1. CREATE TABLE RADLEX.radlinks (
  2.   PID varchar(30) NOT NULL,
  3.   CID varchar(30) NOT NULL,
  4.   relation_type varchar(25) NOT NULL,
  5.   preferred tinyint(1),
  6.   PRIMARY KEY  (PID,CID,relation_type)
  7. )DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  8.  
Best Wishes,

karl
Try this:

Expand|Select|Wrap|Line Numbers
  1. SQL> ed
  2. Wrote file afiedt.buf
  3.  
  4.   1  CREATE TABLE APPS.radlinks (
  5.   2    PID varchar(30) NOT NULL,
  6.   3    CID varchar(30) NOT NULL,
  7.   4    relation_type varchar(25) NOT NULL,
  8.   5    preferred int,
  9.   6    PRIMARY KEY  (PID,CID,relation_type)
  10.   7* )
  11. SQL> /
  12.  
  13. Table created.
  14.  
  15.  
I have changed tinyint to int and removed DEFAULT CHARSET and COLLATE options
Dec 19 '07 #2

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

Similar topics

0
974
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
7
6767
by: bazubwabo | last post by:
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...
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
2522
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...
2
3359
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
4713
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
6454
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
3453
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...
4
5389
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...
0
7920
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...
0
8215
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. ...
1
7973
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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...
0
6626
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...
0
5394
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...
0
3844
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.