Missing right parenthesis
Hi all
Im trying to insert these results to my table of facts (fact_apartments) with the following:
INSERT INTO fact_apartments (avg_price, segmentid, projectid)
SELECT (AVG (Price), segmentid, projectid)
OF projetou
WHERE projectid = '1';
but the return with the missing closing parenthesis, it could not know what the problem
I don't know why you get this error, probably because you have other errors.
you will need a group on your query. FOR EXAMPLE
INSERT INTO fact_apartments (avg_price, segmentid, projectid)
SELECT AVG (Price), segmentid, projectid
OF projetou
WHERE projectid = '1'
GROUP BY segmentid, projectid;
Concerning
André
Tags: Database
Similar Questions
-
Please help me with the missing right parenthesis
The code below gives me error of missing right parenthesis. can someone help me understand the error code. Thank you.
SELECT * FROM CIRC.DRAW_TYPE A WHERE A.CITY_CODE IN CASE WHEN :Rnzip='WithZip' THEN ('46301', '46302') ELSE A.CITY_CODE END
You can try this.
SELECT * FROM CIRC.DRAW_TYPE A WHERE (A.CITY_CODE = decode(:Rnzip,'WithZip','46301',A.CITY_CODE)) Or (A.CITY_CODE = decode(:Rnzip,'WithZip','46302',A.CITY_CODE))
Note: not tested
-
Missing right parenthesis when you use the CONTAINS function
Hello
The following sql causes the error "missing right parenthesis. Its a search engine simple execution of PHP that dynamically adds each keyword to a connection variable. This works fine if I use only 1 keyword, but as soon as others are added, I get the error.
Here's the SQL echo:
My 1st thought was contains it seeks single quote so I tried the following combinations:SELECT SCORE(1), TITLE FROM MYTABLE WHERE CONTAINS(TITLE, :1 AND :2, 1) > 0 ORDER BY SCORE(1), TITLE ASC
Both through the crossover so maybe its nothing to do with citations. I also tried to use single quotes when concatinating the sql in PHP. No joy :(CONTAINS(TITLE, ':1' AND ':2', 1) > 0 CONTAINS(TITLE, ':1 AND :2', 1) > 0
CONTAINS the second parameter is a string, so you should concatenate your variables of two link with the chain AND:
CONTAINS (TITLE,: 1 |) ' AND ' | (: 2, 1) > 0
-
ORA-00907 MISSING RIGHT PARENTHESIS
Hi all
The query
FLASHBACK TABLE schema.table_name to TIMESTAMP (January 18, 2008 18:55:58 ',' MON-DD-YYYY HH24:MI:SS');
gives me error
ORA-00907 MISSING RIGHT PARENTHESIS
WHAT AM I MISSING HERE?
kAIWHAT AM I MISSING HERE?
Try
flashback table schema.table_name to timestamp( to_timestamp('18-JAN-2008 18:55:58','DD-MON-YYYY HH24:MI:SS'));
-
Missing right parenthesis error
I have all brackets correctly syntxed, however, I still get the missing parenthesis error. Someone please help!
create the table w_agree_d
(
DATASOURCE_NUM_ID NUMERIC (10,0) NOT NULL,
ETL_PROC_WID NUMERIC (10,0) NOT NULL,
INTEGRATION_ID VARCHAR2 (30) NOTNUL,.
MINI_WID NUMERIC (10,0) NOT NULL DEFAULT 0,
ROW_WID NUMERIC (10,0) NOT NULL,
STAMP OF APPR_DT,
STAMP OF EFF_DT,
END_DT TIMESTAMP,
RENEWABLE_FLG VARCHAR2 (1).
SERVICE_FLG VARCHAR2 (1).
STAMP OF START_DT,
VALID_FLG VARCHAR2 (1).
AGREE_CD VARCHAR2 (30),
AGREE_CD_I VARCHAR2 (50).
AGREE_NUM VARCHAR2 (30),
APPR_BY_EMP VARCHAR2 (50).
NAME VARCHAR2 (50).
PAR_INTEGRATION_ID VARCHAR2 (30),
PAR_NAME VARCHAR2 (50).
PRI_LST_NAME VARCHAR2 (50).
PR_SALES_EMP VARCHAR2 (50).
RATE_LST_NAME VARCHAR2 (50).
STATUS_CD VARCHAR2 (30),
STATUS_CD_I VARCHAR2 (50));Welcome to the forum!
NOT NULL
should be
NOT NULL
You are missing the SPACE between NO and NULL
Please read the FAQ on {message identifier: = 9360002} to ask the question in a better way.
-
get the error missing right parenthesis
Hello
I get error of parenthesis to absent on the script below
Published by: BluShadow on October 20, 2011 13:45select * from ( select t_rpt_facility_id, t_ccf_drawn, t_main_acl_type, t_main_acl_id, t_b_restructured, t_rating_id , t_rw, t_outstanding, least(t_outstanding,t_security_value) t_security_value from (--5 select (case when t_b_ucc =0 then (case when (t_nonTL = 1 ) then 13 else (case when (t_original_maturity <= 1) then 13 when t_original_maturity > 1 then 14 end) end) when t_b_ucc =1 then 15 when t_b_ucc =2 then 7 end ) t_rpt_facility_id , ( case when (t_nonTL = 1 and t_b_ucc =0 ) then t_UD_LE_1YR_CCF else t_ccf end ) t_ccf_drawn , (select c.main_acl_type from c2rc_xbrl_main_acl c where c.main_acl_id = t_main_acl_id ) t_main_acl_type , t_main_acl_id , t_b_restructured , (case when (t_main_acl_id =1) then 0 else t_rating_id end ) t_rating_id , t_rw , (case when t_b_ucc = 1 then t_ua_limit_ccy_ccy_cf else ( case when qry=1 then (t_unavailed_limit - (t_net_exposure_secu_guar*100/( case when t_nonTL = 1 then t_UD_LE_1YR_CCF else t_ccf end ) )) else --Guarantors (t_net_exposure_secu_guar*100/( case when t_nonTL = 1 then t_UD_LE_1YR_CCF else t_ccf end ) ) end ) end) t_outstanding ,t_security_value from (---4 select 1 as qry, t.b_ucc t_b_ucc ,t.original_maturity t_original_maturity ,(select bsl_ccf from c2c_ccf z where z.ccf_id = 102) t_UD_LE_1YR_CCF ,t.ccf t_ccf --- Handling the NonTL case for HDFC. ,(case when ( t.facility_type_id <> 1 and (exists(select 1 from c2p_this_inst i where i.bank_inst_id = 'HDFC'))) then 1 else 0 end) t_nonTL , nvl((select m.main_acl_id from c2rc_xbrl_acl_mapping m where m.sub_acl_id=t.sub_acl_id),18) t_main_acl_id , t.sub_acl_id t_sub_acl_id , t.b_restructured t_b_restructured , (case when (select m.main_acl_id from c2rc_xbrl_acl_mapping m where m.sub_acl_id=t.sub_acl_id) in (6,7) then (select e.crar from c2m_client e where e.client_id = t.client_id) else ( case when t.rating_id >205 then 205 else t.rating_id end) end) t_rating_id , t.rw t_rw ,(t.ua_limit_ccy * t.ccy_cf) t_ua_limit_ccy_ccy_cf , t.net_exposure_secu_guar t_net_exposure_secu_guar , t.unavailed_limit t_unavailed_limit ----To adjust cases where only limit(unavailed) is uploaded . ---In On-Bal,the security is not to shown in ON Bal ---As its unavailed , the same will be shown in NMR off bal. , (case when (t.limit_exp_id = 1 and t.outstanding > 0) then 0 else (t.security_value + t.provisions) end) t_security_value from c2m_limit t where t.b_npa = 0 ---This condition will eliminate the double counting of the security value in case of unavalied limits and t.limit_exp_id in (1,2))
Fixed barcode labelsI'd start with this grooming and remove unnecessary parenthesis, a bit like this...
select * from (select t_rpt_facility_id, t_ccf_drawn, t_main_acl_type, t_main_acl_id, t_b_restructured, t_rating_id, t_rw, t_outstanding, least(t_outstanding,t_security_value) t_security_value from (-- 5 select case when t_b_ucc =0 then case when t_nonTL = 1 then 13 else case when t_original_maturity <= 1 then 13 when t_original_maturity > 1 then 14 end) end when t_b_ucc =1 then 15 when t_b_ucc =2 then 7 end as t_rpt_facility_id ,case when (t_nonTL = 1 and t_b_ucc =0 then t_UD_LE_1YR_CCF else t_ccf end as t_ccf_drawn ,(select c.main_acl_type from c2rc_xbrl_main_acl c where c.main_acl_id = t_main_acl_id) as t_main_acl_type ,t_main_acl_id ,t_b_restructured ,case when t_main_acl_id =1 then 0 else t_rating_id end as t_rating_id ,t_rw , case when t_b_ucc = 1 then t_ua_limit_ccy_ccy_cf else case when qry=1 then t_unavailed_limit - (t_net_exposure_secu_guar*100/(case when t_nonTL = 1 then t_UD_LE_1YR_CCF else t_ccf end)) else t_net_exposure_secu_guar*100/(case when t_nonTL = 1 then t_UD_LE_1YR_CCF else t_ccf end) --Guarantors end end as t_outstanding ,t_security_value from (-- 4 select 1 as qry ,t.b_ucc as t_b_ucc ,t.original_maturity as t_original_maturity ,(select bsl_ccf from c2c_ccf z where z.ccf_id = 102) as t_UD_LE_1YR_CCF ,t.ccf as t_ccf --- Handling the NonTL case for HDFC. ,case when t.facility_type_id != 1 and exists(select 1 from c2p_this_inst i where i.bank_inst_id = 'HDFC') then 1 else 0 end as t_nonTL ,nvl((select m.main_acl_id from c2rc_xbrl_acl_mapping m where m.sub_acl_id=t.sub_acl_id),18) as t_main_acl_id ,t.sub_acl_id as t_sub_acl_id ,t.b_restructured as t_b_restructured ,case when (select m.main_acl_id from c2rc_xbrl_acl_mapping m where m.sub_acl_id=t.sub_acl_id) in (6,7) then (select e.crar from c2m_client e where e.client_id = t.client_id) else case when t.rating_id >205 then 205 else t.rating_id end end as t_rating_id ,t.rw t_rw ,t.ua_limit_ccy*t.ccy_cf as t_ua_limit_ccy_ccy_cf ,t.net_exposure_secu_guar as t_net_exposure_secu_guar ,t.unavailed_limit as t_unavailed_limit ----To adjust cases where only limit(unavailed) is uploaded . ---In On-Bal,the security is not to shown in ON Bal ---As its unavailed , the same will be shown in NMR off bal. ,case when t.limit_exp_id = 1 and t.outstanding > 0 then 0 else t.security_value+t.provisions end as t_security_value from c2m_limit t where t.b_npa = 0 ---This condition will eliminate the double counting of the security value in case of unavalied limits and t.limit_exp_id in (1,2) ) ) <--- MISSING bracket here ) <--- MISSING bracket here
and then work to try and eliminate some of the queries online one selects them and turn them into joints if possible.
Some of the case statements can probably be simplified. -
Problem with right parenthesis.
Hello
I'm trying to do something simple, and it doesn't.
During an attempt which:
I get a "missing right parenthesis" on line 8, which is the line with immediate execution.declare solde number; journal varchar2(2); dossier varchar2(12); begin journal:='21'; dossier:='1707029205'; execute immediate 'select sum(a.debi)-sum(a.cred) into solde from auxiloc a, dossier d, client c where d.clie =c.code and a.doss in (select o.code from dossier o where o.clie=c.code ) and a.cmpt =4111 and a.xdate <= (select dar2 from qt:1 where doss=d.code ) and d.jqt =:2 and d.code=:3' using journal,journal,dossier; end;
Obviously, there is no missing brackets, I am must be missing something, but what?
The query such as:
works without a hitch...select sum(a.debi)-sum(a.cred) --into solde from auxiloc a, dossier d, client c where d.clie =c.code and a.doss in (select o.code from dossier o where o.clie=c.code ) and a.cmpt =4111 and a.xdate <= (select dar2 from qt21 where doss=d.code ) and d.jqt =21 and d.code=1707029205;
clues?Don't look for the error of "in" first time.
You must move the "in" out of the sql string.execute immediate 'select ...' into solde using ....
-
Hello
I try to extract the schema DDL to a base (10.2.0.4.0 - 64-bit Enterprise Edition on Solaris 10). I ran the query below and get an ORA-00907: parenthesis right absent error.
SELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN ('TABLE_PARTITION', "INDEX_PARTITION", "LOB");
This is the output when executing the above in the sqlplus worksheet
Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects if object_type in ('TABLE_PARTITION',"INDEX_PARTITION","LOB")
*
ERROR on line 1:
ORA-00907: lack of right parenthesis
remove the where the clause gives the following:
Select DBMS_METADATA. GET_DDL (REPLACE (object_type, ", '_') as object_type, object_name) FROM user_objects
*
ERROR on line 1:
ORA-00907: lack of right parenthesis
Pointers would be welcome. I know I could get the DDL using exp/imp, but I'd like to understand why I get the error of missing parenthesis.
see you soon,
EwanSELECT DBMS_METADATA. GET_DDL (REPLACE(object_type,' ','_') AS object_type, object_name) FROM user_objects WHERE object_type NOT IN
You don't need an alias here. Getting rid of the "as long as object_type' and it should work.
-
Firefox 4 is missing right scroll bar on some sites. Clear cache doesn't help. any ideas?
You are welcome.
Could you please click the button "solved it" to take your post out of the loop?
Thank you.
-
ORA-00907 - "lack the right parenthesis.
Hello
I am trying to create a procedure to add table scores each month. This is my code:
create or replace procedure add_partitions
as
v_partition all_tab_partitions.partition_name%type;
v_limit varchar2 (50);
LONG v_sql;
Start
Select to_char (trunc (add_months(sysdate,1), 'MM'), 'Mon_YYYY')
in v_partition
Double; -napr. 072014
Select to_char (trunc (add_months(sysdate,2), 'MM'), 'DD-MM-YYYY')
in v_limit
Double; -napr. 08/01/2014
v_sql: = ' ALTER TABLE CENTRUMADMIN. AUD$ _BACKUP ADD PARTITION '. v_partition | «VALUES LESS THAN (' |)» v_limit | ') tablespace BACKUP_AUDIT';
immediately run v_sql;
end;
/
The procedure is compiled without errors, but when I run it I get this error:
ORA-00907 - "lack the right parenthesis.
After some tests, I am sure that this problem is here: VALUES LESS THAN (' | v_limit |) (')... but I'cant understand whats wrong
Any ideas? Thanks in advance
Honza
Hi Mika,
Try
VALUES LESS THAN ("' | v_limit |) (') - three times - 2 gives you a ' in your statement - the 3rd chain delimited
concerning
Kay -
missing closing parenthesis when creating foreign key
Schema1.Table1 ALTER TABLE ADD (CONSTRAINT test_FK
FOREIGN KEY (test)
REFERENCES schema1.table2 (test)
USING INDEX TABLESPACE indextb);
With the HELP of INDEX TABLESPACE indextb)
*
ERROR on line 4:
ORA-00907: lack of right parenthesis
Please help, I tried several times. But I still get the same error
Delete the TABLESPACE of INDEX clause to HELP. It is not valid here.
Create a foreign key does not implicitly create an index. Since there is no index, there is no tablespace to worry. As a general rule, you don't want to create an index to support the how foreign key constraint there a sense perhaps specify a tablespace.
Justin
-
One more time: lack of right parenthesis
Hi guys,.
I searched the forum for another thread that might give me the answer I'm looking for, but I found no one.
I'm new to APEX and I have to build a crosstab. To do this, I founded my development on really force crosstab / Pivot report example.
My package is completely identical it is on that page and I have adapted to the query of the report (= classic, non-interactive) based on PL/SQL, so it fits my needs, the result is:
DECLARE
l_return_value VARCHAR2 (32767).
BEGIN
l_return_value: = PK_PIVOT. PivotSQL ("SELECT * FROM"Ploegrapport - view "', 'SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5', 'NK_WERKNEMER', 'MIN', 'J_N', nvl (:P2_PAGENUMBER,1));)
RETURN l_return_value;
END;
When I try to run it, I get the error ORA-00907: lack the closing parenthesis.
When I click on "debug", it changes to:
debug logging error ORA-06502: PL/SQL: digital or value error: character string of the buffer too small ORA-00907: lack the right parenthesis
Failed to parse the SQL query:
ORA-00907: lack of right parenthesis
When I then click on "debug mode" I get the following:
... Run the statement: declare function x return varchar2 is begin DECLARE l_return_value VARCHAR2 (32767). BEGIN l_return_value: = PK_PIVOT. PivotSQL ("SELECT * FROM"Ploegrapport - view "', 'SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5', 'NK_WERKNEMER', 'MIN', 'J_N', nvl (:P2_PAGENUMBER,1));) RETURN l_return_value; END; Returns a null value. end; begin wwv_flow.g_computation_result_vc: = x; end;
...... Result = SELECT SOD_OMSCHR_LANG, OOD_OMSCHR_LANG, ACT_OMSCHR_LANG, TAAK_OMSCHR_LANG, ORG_NIV4, ORG_NIV5, MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE(NK_WERKNEMER,XXXXX',J_N,null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER Null 'XXXXX' ((, J_N,)) as "XXXXX" MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) 'XXXXX', MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as "XXXXX", MIN (DECODE (NK_WERKNEMER, J_N ' XXXXX', null)) as 'XXXXX '. MIN (DECODE(NK_WERKNE~), MIN (DECODE (NK_WERKNEMER 'XXXXX' J_N, null)) as 'XXXXX'
(Don't worry the XXXXX, I put it there manually because this is sensitive information, the field is actually correct and represents the names of people.) The query works when I cut the last piece, which is broken, and when I add a group, so the query he built seems to be OK
As you can see the query in debug is actually broken after 999 characters, this is simply due to the fact that debugging will show no more than 999 characters, or is this really my problem, that the query is broken before the full statement is complete.
If this is the first option: then where would my problem? If it's the latter: I checked the report query code and the package code and I can't find a reason why this request would be accepted to exist out of 999 characters.
I am currently working with the test environment Oracle supplied us, because we test if we can use APEX in our company.
The version is Application Express 4.2.2.00.11 and it is running on Oracle 11 g.
If you need more information, just ask and I'll post it as soon as possible.
During the validation of the responses, please keep in mind that I am a beginner at this and have trouble understanding complex responses .
Thanks for your help!
NDG
Hello
I discovered what the problem was.
In my data, there is an employee with a '-character in his name and that's what makes the query returns an error. I tried again, this time without taking account of all the names with a '-character and that the query ran successfully, now a column made dynamically for each employee, just as I wanted.
Thank you Tom for your efforts!
-
script to return the amount of left &; right parenthesis &; media
The copy of ingredients below seems correct you? Try the evidence and feel our frustration.
Well, I tend to believe there is an extra right parenthesis, and this is a perfect job for a script. Can we make a script to return:
Left parentheses: XX
Right parenthesis: XX
Left parentheses: XX
Right media: XX
Left braces: XX
Right braces: XX
or propose another method for the County / evidence. I've been the colorization of sections.
INGREDIENTS: Dulce De Leche Caramel [corn syrup, sweetened condensed milk (pasteurized milk, sugar), water, palm oil, cream, glycerine, pectin, salt, Phosphate disodium, (emulsifier), soy lecithin, natural and artificial flavor, CARRAGEENAN and Sorbate de Potassium (conservative)], the Whip topping [water, corn syrup, palm kernel oil, sugar, contains less than 2% of the following: COPRA oil] (, (derived from A milk) Sodium caseinate, dextrose, gum Arabic, gum of carbohydrates, salt, xanthan gum, natural flavour, extracted, morning of beta carotene to rice), wheat flour, palm oil, sugar, eggs, pecan nuts, milk, butter [cream (milk), water]. Chocolate drizzle [corn syrup, water, cocoa (processed with alkali),-modified maize starch, glycerine, (conservative) potassium sorbate, artificial flavour], cocoa (processed with Alkali), baking soda, Benzoate de Sodium (conservative)
CONTAINS: Milk, soy, wheat, eggs, Pecans
Hi Mike,.
It's been many moons (10 months) that I posted here. Anyway, I have been 'hidden' forums every day since and did some searching for something today and came across this thread so I decided to post. I don't know whether or not you have received one response from others (cough: Carlos ;-), in any case, perhaps this will help your efforts, otherwise, it's a basic example):
// --------------------------------------------------- // Script Purpose: Check And Count All Brackets // Script Name: W_J_T_checkBrackets.js // Test Environment: Mac - Illustrator CS5 // Forum Source: https://forums.adobe.com/thread/1564938 // © W_J_T 2/24/2015 // --------------------------------------------------- function checkBrackets() { if (app.documents.length == 0) { alert("Script Aborted:\nNo Open Document Found"); return; } if (app.activeDocument.selection.length != 1 || app.activeDocument.selection[0].typename != 'TextFrame') { alert("Script Aborted:\nPlease select a single text frame and try again"); return; } if (app.activeDocument.selection[0].typename == 'TextFrame') { // This section returns the # count for each type of bracket: var txtString = app.activeDocument.selection[0].contents; var LP = txtString.split("(").length - 1; var RP = txtString.split(")").length - 1; var LB = txtString.split("[").length - 1; var RB = txtString.split("]").length - 1; var LC = txtString.split("{").length - 1; var RC = txtString.split("}").length - 1; alert("Results:\n" + "Left Parenthesis: " + LP + "\nRight Parenthesis: " + RP + "\nLeft Brackets: " +LB + "\nRight Brackets: " + RB + "\nLeft Curly Brackets: " + LC + "\nRight Curly Brackets: " + RC); // This section returns just the brackets as a string to see the visual sequence: alert(returnBrackets(txtString).split('').join(' ') + "\n * visual representation of brackets"); function returnBrackets(txt) { var brackets = /[^()\[\]{}]/g; return ("" + txt).replace(brackets, ""); }; // This section changes the color to RED, size to 20 and font to Verdana of all brackets in the selected text for easier finding and editing: // Note: However keep in mind, the execution time will increase for large portions of text when using this portion of the code. var redColor = new RGBColor(); redColor.red = 255; redColor.green = 0; redColor.blue = 0; var txtString = app.activeDocument.selection[0]; for (var i = 0, l = txtString.characters.length; i < l; i++) { var txtChar = txtString.characters[i]; if (txtChar.contents == "(" || txtChar.contents == ")" || txtChar.contents == "[" || txtChar.contents == "]" || txtChar.contents == "{" || txtChar.contents == "}") { txtChar.characterAttributes.fillColor = redColor; txtChar.size = 20; txtChar.characterAttributes.textFont = app.textFonts.getByName("Verdana"); } } } } checkBrackets();
I suppose it could be expanded further, but it is a starting point and could, however, be useful for your efforts. It will be useful.
W_J_T
-
ORA-00906 missing left parenthesis
Hello
I get "ORA-00906 missing opening parenthesis" error during the creation of the foreign key on the short-term in the table t_friends column.
(1) parent table:
create the table t_city
(
city_name varchar2 primary key (60)
)
(2) child table:
create the table t_friends
(
friend_name varchar2 (30) not null,
city_name varchar2 (60)
)
ALTER table t_friends add constraint city_cons foreign key short-term reference t_city (short-term);
Please can you tell me what is the error that I do in the syntex above.
Thank you
Michel KTry this:
alter table t_friends add constraint city_cons foreign key (city_name) references t_city(city_name);
You forgot to put the column in parentheses.
-
get a right parenthesis missing error...
DECLARE
CURSOR rule_cur
IS
SELECT rule_id, math_operator, range_value, ERROR_CODE, key_field
OF processing_validation_rules
WHERE validation_id = (SELECT validation_id
OF processing_validation_master
WHERE source_id = 1 AND ROWNUM < 2);
strquery1 VARCHAR2 (1000);
colquery1 VARCHAR2 (1000);
strquery2 VARCHAR2 (1000);
colquery2 VARCHAR2 (1000);
strquery3 VARCHAR2 (1000);
InsertQuery VARCHAR2 (1000);
DelQuery VARCHAR2 (1000);
v_error_code NUMBER;
v_error_msg VARCHAR2 (255);
p_filename VARCHAR2 (100);
p_src_tablename all_objects.object_name%TYPE;
p_dest_tablename all_objects.object_name%TYPE;
p_src_status_col all_tab_cols.column_name%TYPE;
p_sourceid NUMBER;
p_success NUMBER;
BEGIN
p_filename: = 'abc ';
p_src_tablename: = 'TEMP_RECORDS_TAP ';
p_dest_tablename: = 'TAP_REJECT ';
p_src_status_col: = 'STATUS_CODE ';
p_sourceid: = 1;
p_success: = 1;
FOR param_rec IN rule_cur
LOOP
strquery1: =.
"update".
|| p_src_tablename
|| 'set '.
|| p_src_status_col
|| ' = '
|| p_src_status_col
|| ' * '
|| param_rec. ERROR_CODE
|| 'WHERE '.
|| param_rec.key_field
|| ' '
|| param_rec.math_operator
|| ' '
|| param_rec.range_value; -LACK OF PARENTHESIS RIGHT
EXECUTE IMMEDIATE strquery1;
END LOOP;
END;user8731258 wrote:
Update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 length WHERE (trim (translate (IMSI_MIN, '+-1234567890',' ')) IS NULL)
Update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 length WHERE (trim (translate (IMSI_MIN, '+-1234567890',' ')) IS NULL)These two are missing a closing parenthesis.
They probably should be:
update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 WHERE length(trim(translate(IMSI_MIN,'+-1234567890',' '))) IS NULL update TEMP_RECORDS_TAP set STATUS_CODE = STATUS_CODE * 13 WHERE length(trim(translate(IMSI_MIN,'+-1234567890',' '))) IS NULL
Maybe you are looking for
-
Sometimes while typing, a bar appears above the letter, I type with a large number of strange symbols for this letter. The keyboard stop typing. The only way I found to get out, is to shut down my computer and restart it. My wife has the same problem
-
What is it?
-
float to bytes conversion using c code in labview
Mr President, I made the taste of the float to bytes conversion using type cast in labview. now I want that conversion using the code c. means I want to know that how labview can suport code c. farmula node is not suporting my code which is working w
-
Need a driver for Canon Selphy CP400 with Windows 7
There is no driver support for my Canon Selphy CP400 constructor. I am running windows 7. What can I do to get a driver for it so my printer working again?
-
IPSec tunnel between 2 routers
Hello I am trying to configure an IPSec VPN tunnel between 2 routers Cisco, connected to the internet via the ATM interface, my router is a 1841 with the network 10.200.36.0 address the remote router is a Cisco network 192.168.9.0 address with 877. I