java.sql.SQLException: ORA-00907: 缺失右括号 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 80%
Bbs1
本版专家分:0
java.sql.SQLSyntaxErrorException: ORA-00907: 缺失括号
-
mybatis批量修改,这样写是不是有问题,老说我缺失有右括号
mybatis批量修改,这样写是不是有问题,老说我<em>缺失</em>有右<em>括号</em> 修改的结果要求是一个bicycleId对应一个pileId(可以随便对应,就是保证只对应上一个就行),这样写会不会出现一个bicycle
ORA-00907: 缺失括号
/* Formatted on 2018/7/17 14:59:32 (QP5 v5.256.13226.35538) */ UPDATE yl_user    SET YL_COMPANY_ID =           (  SELECT ID                FROM YL_REPAIR_SHOP               WHERE     CONTRACT_MOBILE =...
ORA-00907: 缺失括号与左括号问题总结
在创建数据表总结如下:  1.date限定字段大小的时候,会报错,比如,将date(12)去掉(12);  2.关键字顺序有误,也会报这样的错;  3.创建表时,如果表有关键字,用双引号括起来;  4.如果创建表时,未对字段中的表设置长度,也会报错;  5.创建主外键约束时外键类型跟主键类型不完全一致,也是会报错的。  ...
ORA-00907- 缺失括号
ORA-00907- <em>缺失</em>右<em>括号</em> 原因:自己写的SQL语句的条件参数出错,所以报了错。
ORA-00907: 缺失括号(通用解决办法)
PL/SQL 的SQL语句可以执行,但是放在hibernate中,后台打印,出现了错误。 错误的SQL解析:黄色为错误部分 Hibernate: select examinee0_.EXAM_YEAR as col_0_0_, count(*) as col_1_0_, sum(caseexaminee0_.CHECK_FLAG...
ORA-00907: 缺失括号;代码我在sql运行中都正确,但到了idea中就报错
这代码我在sql运行中都正确,但到了idea中就报错 我觉得是子查询中那个order by的毛病,但分页语法必须有 SELECT PP.EMP_CODE, E.NAME, PP.EMP_SEQ_NUM, PP.ORG_NAME, PP.EMP_PROPERTY, PP.EMP_TYPE, PP.EMP_ORG_ID, PP.ID FROM (SELECT T.ID, T.IS_DELETED, T...
ORA-00907 缺失括号
SELECTrnxmlid.nextval,rn''rnrnrnrnFROM user_tab_columns t WHERE t.TABLE_NAME=vtab;rnrn变量是前面存过定义好的。 rn
ORA-00907:缺失括号
CREATE TABLE WEB_CULTURE(rnCULTURE_ID NUMBER(10),rnCULTURE_TITLE VARCHAR2(500),rnCULTURE_TYPE NUMBER(10),rnCULTURE_DATE DATE(7),rnDEPT VARCHAR2(100),rnCULTURE_CONTENT BLOB,rnCULIMG_URL VARCHAR2(256),rnCUL_TITLE VARCHAR2(128),rnCONSTRAINT WEB_CULTURE PRIMARY KEY (CULTURE_ID)rn);rn这段建表语句报 ORA-00907:<em>缺失</em>右<em>括号</em>
oracle查询语句老是报ORA-00907缺失括号
-
mybatis java.sql.SQLException: ORA-00907: 缺失括号
   在使用spring+mybatis进行应用开发时,使用了mybatis的动态SQL,添加动态查询语句:   &amp;lt;select id=&quot;getSpasDataLogList&quot; resultType=&quot;com.xxx.xxx.xxxBean&quot; resultMap=&quot;spasDataLogMap&quot;&amp;gt; &amp;lt;![CDATA[ select * from ...
ora-00907: 缺失括号
在pl/sql里执行  报此错rnselect TEMQ_1f040dd124f08b2ce1.GW GW,rn TEMQ_1f040dd124f08b2cb2.GZRQ GZRQ,rn TEMQ_1f040dd124f08b2bd8.DH DH,rn TEMQ_1f040dd124f08b2bd8.XKHSM XKHSM,rn TEMQ_1f040dd124f08b2c83.KHZS KHZS,rn TEMQ_1f040dd124f08b2c83.KHZS - TEMQ_1f040dd124f08b2bd8.XKHSM LKHZS,rn TEMQ_1f040dd124f08b2cb2.LDZS LDZS,rn TEMQ_1f040dd124f08b2cb2.QDZS QDZS,rn TEMQ_1f040dd124f08b2cb2.QFZS QFZS,rn TEMQ_1f040dd124f08b2d20.QYTS QYTS,rn TEMQ_1f040dd124f08b2d20.MJ MJ,rn TEMQ_1f040dd124f08b2d20.JE JE,rn TEMQ_1f040dd124f08b2d20.YSJE YSJE,rn TEMQ_1f040dd124f08b2d20.QKJE QKJE,rn sum(TEMQ_1f040dd124f08b2cb2.LFZS) LFZSrn from TEMQ_1f040dd124f08b2cb2,rn TEMQ_1f040dd124f08b2bd8,rn TEMQ_1f040dd124f08b2c83,rn TEMQ_1f040dd124f08b2d20,rn TEMQ_1f040dd124f08b2ce1rn where TEMQ_1f040dd124f08b2cb2.GZRQ = TEMQ_1f040dd124f08b2bd8.DJRQrn and TEMQ_1f040dd124f08b2cb2.GZRQ = TEMQ_1f040dd124f08b2c83.GZRQrn and TEMQ_1f040dd124f08b2cb2.GZRQ = TEMQ_1f040dd124f08b2d20.QYRQrn and TEMQ_1f040dd124f08b2cb2.PK_PSNDOC =rn TEMQ_1f040dd124f08b2ce1.PK_PSNDOCrn and ((TEMQ_1f040dd124f08b2ce1.PK_CORP = '1008') andrn (TEMQ_1f040dd124f08b2bd8.PK_PSNDOC = '0001G510000000001X90') andrn (TEMQ_1f040dd124f08b2c83.PK_PSNDOC = '0001G510000000001X90') andrn (TEMQ_1f040dd124f08b2cb2.PK_PSNDOC = '0001G510000000001X90') andrn (TEMQ_1f040dd124f08b2d20.PK_PSNDOC = '0001G510000000001X90') andrn (TEMQ_1f040dd124f08b2ce1.PK_PSNDOC = '0001G510000000001X90') andrn (TEMQ_1f040dd124f08b2bd8.PK_PROJECT = '0001G510000000000E8S') andrn (TEMQ_1f040dd124f08b2c83.PK_PROJECT = '0001G510000000000E8S') andrn (TEMQ_1f040dd124f08b2cb2.PK_PROJECT = '0001G510000000000E8S') andrn (TEMQ_1f040dd124f08b2d20.PK_PROJECT = '0001G510000000000E8S') andrn (TEMQ_1f040dd124f08b2ce1.PK_PROJECT = '0001G510000000000E8S') andrn (TEMQ_1f040dd124f08b2cb2.GZRQ >= 'select trunc(next_day(to_date('rn 2009 - 10 - 30 ', ' yyyy - mm - dd '), 1) - 6) from dual') andrn (TEMQ_1f040dd124f08b2cb2.GZRQ ))rn group by TEMQ_1f040dd124f08b2ce1.GW,rn TEMQ_1f040dd124f08b2cb2.GZRQ,rn TEMQ_1f040dd124f08b2bd8.DH,rn TEMQ_1f040dd124f08b2bd8.XKHSM,rn TEMQ_1f040dd124f08b2c83.KHZS,rn TEMQ_1f040dd124f08b2c83.KHZS - TEMQ_1f040dd124f08b2bd8.XKHSM,rn TEMQ_1f040dd124f08b2cb2.LDZS,rn TEMQ_1f040dd124f08b2cb2.QDZS,rn TEMQ_1f040dd124f08b2cb2.QFZS,rn TEMQ_1f040dd124f08b2d20.QYTS,rn TEMQ_1f040dd124f08b2d20.MJ,rn TEMQ_1f040dd124f08b2d20.JE,rn TEMQ_1f040dd124f08b2d20.YSJE,rn TEMQ_1f040dd124f08b2d20.QKJErn请赐教
解决:java.sql.SQLSyntaxErrorException ORA-00907: 缺失括号
问题描述:sql语句可以在pl/sql中正确执行,但在mybatis中报错java.sql.SQLSyntaxErrorException ORA-00907: <em>缺失</em>右<em>括号</em>!解决办法:将查询条件中的“#”替换成“$”.原因如下:MyBatis看到 #{}会认为你在给sql中的变量赋值,就像JDBC编程中给问号赋值一样(自动在前后加单引号)也就是说,他把你传入的字符串并没有当做多个值,而是当做一个大...
创建数据库表时,关于ORA-00907: 缺失括号与左括号问题总结
今天使用Oracle数据库建表的时候,遇到了“ORA-00907: <em>缺失</em>右<em>括号</em>”的问题,关于这个,做了一些总结: 报错的sql语句: create table pre_info(pre_name varchar2(20),pre_code varchar2(20),pre_num number(5),pre_price_old number(5), pre_tax decimal...
sql语句正确,但是报错java.sql.SQLSyntaxErrorException ORA-00907: 缺失括号
sql语句如下,在oracle中带入参数能正常执行,在java程序中则报错java.sql.SQLSyntaxErrorException ORA-00907: <em>缺失</em>右<em>括号</em> select re.*, tbp.taskid, tbp.processtype, tbp.pr
; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00907: 缺失括号
SELECT P.*, ROWNUM AS rowno FROM (SELECT * FROM &quot;equipment_info&quot;,&quot;equipment_status&quot;,&quot;user&quot;,&quot;parking_lot&quot; WHERE &quot;equipment_info&quot;.&quot;parking_id&quot;=&quot;parking_lot&quot;.&quot;id&quot; and &quot;eq
mybatis分页查询时ORA-00907: 缺失括号
mybatis语句: SELECT * FROM (SELECT id as id, appserialnumber as appserialnumber, who as who, createtim
ora-00907 缺失括号?????
SELECT /*+ parallel (statcmain )*/ rn sum(decode(statcmain.certitype,''P'', 1,decode(statcmain.endortype, ''19'', ''-1'', 0))) as Count, rn sum((STATCMAIN.CHGPREMIUM - STATCMAIN.CHGMIDDLECOST) * STATCMAIN.CNYEXCHRATE * STATCMAIN.COINSRATE / 100) as premium, rn sum(STATCMAIN.CHGINSURED * STATCMAIN.CNYEXCHRATE * STATCMAIN.COINSRATE / 100) as amount, rn sum(STATCMAIN.CHGLIMIT * STATCMAIN.CNYEXCHRATE * STATCMAIN.COINSRATE / 100) as limit rn FROM rep.Statcmain, rn reptest.statcogsharerate, rn rep.statdcompanylevel rn where Statcmain.Policyno = statcogsharerate.policyno(+) rn and statcmain.comcode = statdcompanylevel.comcode rn and statcmain.riskcode NOT IN (''YAB0'', ''2797'', ''2798'') rn AND STATCMAIN.CLASSCODE <> ''30'' rn group by statcmain.statdate, rn statcmain.StartDate, rn statcmain.COMCODE, rn decode(statcmain.riskcode, rn ''2700'', rn statcmain.productcode, rn statcmain.riskcode), rn statcmain.SHAREHOLDERFLAG, rn statcmain.BUSINESSNATURE, rn ((substr(statcmain.othflag, 1, 1))), rn statdcompanylevel.centercode, rn statcmain.Agentcode, rn statcmain.Handler1code, rn decode(substr(statcmain.othflag, 15, 1), rn NULL, rn ''0'', rn substr(statcmain.othflag, 15, 1)), rn statcmain.BusinessKind, rn statcmain.BusinessClass, rn CASE WHEN (statcmain.businessflag IS NULL OR statcmain.businessflag <> ''1'') THEN (''0'') rn ELSE (''1'') END, rn statcmain.businesssource, rn statcmain.constructtype,rn statcmain.channeltype,rn statcmain.servicearea,rn statcmain.agriFlag,rn statcmain.usenaturecode,rn statcmain.carkindcode,rn statcmain.toncount,rn statcmain.applitype,rn statcmain.ventureflag, rn statcmain.grouppurchaseflag;rn
ORA-00907: 缺失括号问题!!!???
今天遇到了数据库建表时的问题:ORA-00907: <em>缺失</em>右<em>括号</em>问题!!!???rnrnrn我的SQL脚本如下:rnrncreate table sys_managers(ID bigint NOT NULL PRIMARY KEY,rnname varchar(28) NOT NULL,rnsex varchar(4) NOT NULL,rnage int(3) NOT NULL,rnaddress varchar(100) NOT NULL,rnpassword varchar(18) NOT NULL,rnrole varchar(28) NOT NULL,rnflag varchar(6) NOT NULL,rnflag2 varchar(6) default null,rndegree varchar(8) not null,rnpositional_title varchar(18) default null,rndate1 date not null,rndate2 date default null,rnflag3 varchar default null,rnself TEXT default null)ENGINE=InnoDB DEFAULT CHARSET=gb2312;rnrn若在MySQL中,会出现如附图片的报错信息。rn请教各位大神该如何修改,解决问题啊?rnrnrn
SQLSyntaxErrorException: ORA-00907: 缺失括号
select * from ( select a.*, ROWNUM rnum from ( select site_code,shop_order,target_qty,start_date,close_date,sales_order,customer_code,item_code,status ,remark,create_by,create_time,update_by,update_time from SHOP_ORDER WHERE shop_order = ? and start_date between to_date(?,'yyyy/mm/dd hh24:mi:ss') and close_date between to_date(?,'yyyy/mm/dd hh24:mi:ss') and status = ? ) a where ROWNUM < ?) where rnum >= ?nnn大神大牛帮帮忙。
ORA-00907: 缺失括号 问题!!!???
rnrn creat table xh_projectrn(rn pk_project int(4),rn project_code varchar(20),rn project_name varchar(60),rn iflock varchar(1) not null,rn ifmerge varchar(1) not null,rn ts char(19) convert(char(19),getdate(),20),rn dr smallint(2) default 0,rn constraint P_pk_xh_project primary key (pk_project)rn);rnrn 报错提示: ORA-00907:<em>缺失</em>右<em>括号</em> rn 请各位帮忙!rn 数据库使用的是 oracle数据库。rn rn 同样的语句 下面的创建表就可以执行:rncreate table wa_qx_parameterrn(rn pk_parameter CHAR(20) not null,rn param_code VARCHAR(20) not null,rn param_name VARCHAR(100) not null,rn param_value VARCHAR(20) not null,rn approveflag SMALLINT default 0,rn mender VARCHAR(20),rn assessor VARCHAR(20),rn amend_date CHAR(19),rn remark VARCHAR(500),rn ts CHAR(19),rn dr SMALLINT default 0,rn constraint P_pk_wa_qx_paramet primary key (pk_parameter)rn); rn
Oracle数据库java.sql.SQLException: ORA-00907: 缺失括号解决方案
拼写sql时,注意不要将“)”放在 new StringBuffer().append(" ( ") 的首个字母,不然容易导致这个异常的产生。 将")"放到上行末尾即可
mybatis调用Oracle存储程序报SQL命令未正确结束
-
跪求各位大牛指引,一直报:ORA-00907: 缺失括号
-
ORA-00907: 缺少右括号(sql的问题)
下面是jsp的一点代码 //取得当前时间 java.util.Date date=new java.util.Date(); String year=String.valueOf(date.getYe
数据库建表的问题 ORA-00907: 缺失括号问题!!!???
报错:ORA-00907: <em>缺失</em>右<em>括号</em>问题!!!??? 我的建表脚本如下所示: create table sys_managers(ID bigint NOT NULL PRIMARY KEY, na
ORA-00907: 缺少右括号
[img]http://dl2.iteye.com/upload/attachment/0094/0197/219d7536-01cb-3617-8b6b-9454ad67bf83.jpg[/img] 在一个应用系统,提供了运行 ORQCLE SQL 的功能。对于简单的 SQL 语句的运行一切正常,而对于有子查询的复杂 SQL 语句,经常会出现错误。但是,这个语句在 DQL PLUS 中运行...
ora-00907 缺少右括号
我在我的数据库中对另一个数据库建立了链路,并对一个本建了同义词,访问没有问题。rn 我想利用一个过程把这个表的数据导入的我本地服务器中。rn 我建了一个RECORD,中有一个字段类型是DATE的,对应远程表中一个DATE类型字段,rn 但是FETCH后,组成生成的SQL语句的时候,字段的数据由YYYY-MM-DD HH24:MI:SS变成了DD-MM-YY形式了。rn 所以在执行SQL语句时,提示<em>ora-00907</em> 缺少右<em>括号</em>rn 我本地数据的DATE类型格式也为YYYY-MM-DD HH24:MI:SS,但是FETCH后为什么格式变了呢?
关于oracle数据库中出现ORA-00907: 缺失括号的解决方法
原文地址:https://www.cnblogs.com/Olive116/p/5149680.html ORA-00907: <em>缺失</em>右<em>括号</em> 前言 最近在开发过程中使用oracle数据库,在程序中进行查询数据时遇到了“ORA-00907: <em>缺失</em>右<em>括号</em>”的问题,但是如果直接把sql语句直接在数据库或PL/SQL中执行时,却又能够正常查询,为了解决这个问题,折腾了半天,查找了一些资料,所以...
oracle ORA-00907: 缺失括号 问题已解决
问题出现情况: select * from (select a,b,cfrom tab_aorder by a  union allselect a,b,cfrom tab_border by a) A;出现如题所示的错误,解决方式如下: select * from (select a,b,cf
ORA-00907: missing right parenthesis
java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis <em>缺失</em>右<em>括号</em>
ora-00907 缺失括号3
<em>ora-00907</em> <em>缺失</em>右<em>括号</em> 刚刚接触Oracle数据库,在使用PL/SQL dev建表的时候,碰到了<em>ora-00907</em>这个错误,在网上找了很多资料,发现别人碰到的那个问题,跟我碰到的这个问题不一样,所以一直没有解决方法,后来,在网上搜索使用oracle建立外键约束的示例,终于发现自己的错误在什么地方了。 系统环境:window 7 旗舰版 oracle数据库:oracle11g 第
第 12 行出现错误: ORA-00907: 缺失括号
create table T_RECV_MSG (rn DBID number(11) not null,rn STATUS number(11) default 0,rn SEQID varchar(20) default '',rn CALLNO varchar(20) default '',rn DSTCALLNO varchar(20) default '',rn SERVICEID varchar(20) default '',rn LINKID varchar(20) default '',rn SENDTIME date default sysdate,rn CONTENT varchar(4000) default '',rn OPERATOR varchar(20) default '',rn UDHI int(11) default -1, rn primary key (DBID)rn);rnUDHI int(11) default -1,rn *rn第 12 行出现错误:rnORA-00907: <em>缺失</em>右<em>括号</em>rn求教,哪错了rn
缺失括号
例如:rncrate table a(id not null number(4)); 就会报错:缺少")"rn但是:rncreate table a(id number(4) not null); 就不会报错。rn为什么呢?rnnot null 一定要放到后面吗?
缺失括号的问题??
[code=SQL]rn我现在有一个这样的 过程 rn但是执行总是报 <em>缺失</em>右<em>括号</em> 不知道为什么 大家帮忙看看rnrncreate or replace procedure test_p isrntype tcur is ref cursor;rnfi_cur1 tcur;rndos1 date;rndos30 date;rnbeginrndos1 := to_date('2006-01-01','yyyy-mm-dd');rndos30 := to_date('2006-11-01','yyyy-mm-dd');rn open fi_cur1 for ' select distinct mbrid from fi06rn where ( mbrid=''1000'' and dos >= '||dos1||' and dos ;rn--。。。。rnend test_p;rn[/code]
缺失括号问题
最近刚开始学ORACLE, 用的10gEX版本,用HR账号登陆。rn下面的语句: update jobs set max_salary = (1000+(select avg(max_salary) from jobs)) where job_id = 'AD_VP';没有问题。rn不过如果把+1000 放在后面变成:update jobs set max_salary = ((select avg(max_salary) from jobs)+1000) where job_id = 'AD_VP';rn就会提示<em>缺失</em>右<em>括号</em>。百思不得其解~~~rn分不多了,希望大家不吝赐教
缺失括号????
我在创建一个表时,这两行老师提示<em>缺失</em>右<em>括号</em>rn去掉这两行就没问题rn没<em>缺失</em>右<em>括号</em>呀rn这是为什么?rnrn gender varchar2(10) ck_agents_gender check((gender='m')or(gender='f')),rn cellphone nvarchar2(20) uu_agents_cellphone unique
c++builder中的SQL语句出错:ORA-00907:缺失括号
c++builder中的SQL语句出错:rn AnsiString stime,etime;rn stime="2008-12-9 1:18:00"; rn etime="2008-12-9 3:25:00"; rn ADOQuery1->Close();rn ADOQuery1->SQL->Clear();rn ADOQuery1->SQL->Add("Select distinct tag_value.* from tag_value where tag_value.clock> to_date('"+stime+"','yyyy-mm-dd hh24:mi:ss') and tag_value.id=134 or tag_value.id=129 or tag_value.id=130 and tag_value.clock[/color]) order by tag_value.clockrn就不会出错!rn搞不清楚是怎么回事?请教各位大侠!
奇怪的问题 ORA-00907: 缺少右括号
一个非常奇怪的问题rnrn存储过程建立如下rnCREATE OR REPLACE PROCEDURE go (id integer)rnIS rnBEGIN rn return;rnEND go;rnrn在 SQL Plus中调用结果如下rnrnSQL> call go(0);rnrnMethod calledrnrnSQL> call go(id => 0);rnrncall go(id => 0)rnrnORA-00907: 缺少右<em>括号</em>rnrnSQL> rnrnrn怎么会有 ORA-00907: 缺少右<em>括号</em> 这个错误
oracle 建表缺失括号
CREATE TABLE BSI_AREA(rn ADCODE VARCHAR(20) NOT NULL,rn AREANAME VARCHAR(100),rn AREAPOLYSTR CLOB(1048576),rn AREACENTERLON DECIMAL(19,15),rn AREACENTERLAT DECIMAL(19,15),rn CITY_ID VARCHAR(20),rn PARENTID VARCHAR(12),rn CONSTRAINT PK_BSI_AREA PRIMARY KEY(ADCODE));rnrn以上是语句,建好了很多表都是这么写的,这个表就说啥都报错,SQL 错误: ORA-00907: <em>缺失</em>右<em>括号</em>。rn自己尝试给表里的列分别删了就留一列还是不好用,无法定位问题原因,水平比较低,肯定各位大神走过路过帮忙看看。
sql语句缺失括号
我是根据前台传过来的年龄段对人员表里的生日字段进行查询rnsql语句如下rn[code=sql] select * from BC_BCOA_PERSON WHERE PERSON_ID != 0 and PERSON_DELETE=0 and(YEAR (CURDATE()) -1 - YEAR (PERSON_BIRTHDAY) + (DATE_FORMAT(PERSON_BIRTHDAY,'%m%d') =20 AND (YEAR (CURDATE()) -1 - YEAR (PERSON_BIRTHDAY) + (DATE_FORMAT(PERSON_BIRTHDAY, '%m%d') <=100 [/code]rnrn谢谢大家
sql代码缺失括号
sb.append("select MCHT_NO,MCHT_NM,LICENCE_NO,APPLY_DATE,MAPPING_MCHNTCDONE,MAPPING_MCHNTCDTW O,MCHT_STATUS,TERM_COUNT from ");rnsb.append("((SELECT * FROM TBL_MCHT_BASE_INF_TMP t1 left outer join TBL_BRH_INFO t2 on t2.brh_id=t1.agr_br ) A left outer join (select MCHT_CD,count(1) AS TERM_COUNT from TBL_TERM_INF group by MCHT_CD) B ON (A.MCHT_NO = B.MCHT_CD))");rnsb.append("where MCHT_STATUS IN ('1','3','5','6','8','R') ");rnrnrn运行的时候显示上述代码<em>缺失</em>右<em>括号</em>,但是在数据库中可以运行出来,这是什么原因
老提示:ORA-00907: 缺少右括号
我在ORCALE里面建表,老提示错误:ORA-00907: 缺少右<em>括号</em>rnCREATE TABLE myuser2(rnid int(11) not null,rnusername varchar(200) not null,rnpassword varchar(20) not null,rnage int,rnprimary key (id)rn)rnENGINE=MyISAM DEFAULT CHARSET=GBK;rnrn请高手指教
ORA-00907: 缺少右括号 错误 急!!!
declare rnv_sql varchar2(1024);rnbeginrnv_sql := 'create global temporary table t_temp_accountrn (materialID varchar2(7),rn start_amount number(5,0),rn start_money number(10,2),rn in_amount nmuber(5,0),rn in_money number(10,2),rn out_amount number(5,0),rn out_money number(10,2),rn finish_amount number(5,0),rn finish_money number(10,2)rn )on commit preserve rows';rn execute immediate v_sql;rnend;rn执行后 出现错误rndeclarern*rnERROR 位于第 1 行:rnORA-00907: 缺少右<em>括号</em>rnORA-06512: 在line 15rn我的sql语句没有错误的阿 找了半天 望高手指教!
oracle 插入数据时缺失括号???
这是我建的表: rncreate table users(rn userid varchar2(30) primary key,rn username varchar2(30) not null,rn userpassword varchar2(30) not nullrn );rn这个没有报错,当我插入数据时,就出现了右<em>括号</em><em>缺失</em>这个错误,大家帮帮忙吧!我是新手,很多都不懂。谢谢哈!rn这是我插入的数据:insert into users select ('1','david','123456')。
新手求教,缺失括号异常。
create table UserInforn(rn UserId number(5) primary key, ---非空 主键编号rn UserName varchar(20) unique not null , --非空 唯一用户名rn UserPwd varchar(20) not null, --非空 登录密码rn Balance number(5) not null --非空 余额rn);rnrn这段代码说是<em>缺失</em>右<em>括号</em>rn但当我把最后的分号删后rncreate table UserInforn(rn UserId number(5) primary key, --非空 主键编号rn UserName varchar(20) unique not null , --非空 唯一用户名rn UserPwd varchar(20) not null, --非空 登录密码rn Balance number(5) not null --非空 余额rn)rn这里又没事了,rn不删分号,我把前两行注释删了rncreate table UserInforn(rn UserId number(5) primary key, rn UserName varchar(20) unique not null , rn UserPwd varchar(20) not null, --非空 登录密码rn Balance number(5) not null --非空 余额rn);rn段代号也是好的,怎么回事啊????
一存储过程,提示缺失括号问题
一个按时间做的范围分区,现做了一个通用的存储过程,代码如下:rn[code=SQL]rnrncreate or replace procedure addpart(v_tbname in varchar2,v_part in varchar2,rnv_date in varchar2,v_tabs in varchar2) isrnv_sql1 varchar2(200);rnv_sql2 varchar2(200);rnv_dtime date;rnbeginrn v_dtime:=to_date(v_date,'yyyy-mm-dd hh24:mi:ss');rn dbms_output.put_line(v_dtime);rn v_sql2:='alter table '||v_tbname||' add partition '||v_part||' values less than ('||v_dtime||') tablespace '||v_tabs||'';rn dbms_output.put_line(v_sql2);rn execute immediate v_sql2;rnend addpart;rnrn[/code]rnexec addpart('mytest','p_04','2009-04-01 0:00:00','P_TEST');--表名,范围分区名,时间,表空间rn执行的结果如下:rn01-4月 -09rnalter table mytest add partition p_04 values less than (01-4月 -09) tablespace P_TESTrnbegin addpart('mytest','p_04','2009-04-01 0:00:00','P_TEST'); end;rnORA-00907: <em>缺失</em>右<em>括号</em>rnrn现将rnalter table mytest add partition p_04 values less than (to_date('2009-04-01 0:00:00','yyyy-mm-dd hh24:mi:ss')) tablespace P_TESTrn在plsql 中执行通过 rnrnrn向各位请教,存储过程该如何改进下。。。
orcal 建表 缺失括号 怎么弄?
create table T_KP_USERSrn(rn ID numeric(6) not null auto_increment comment '用户ID',rn USERNAME varchar(30) not null comment '用户名称',rn PASSWD varchar(32) not null comment '密码',rn NAME varchar(30),rn SEX varchar(1) comment '1:男rn 2:女',rn PHONE varchar(30),rn SYSTMID varchar(20) comment '所属哪个系统rn 1:监控rn 2:企业在线rn 3:动态稽查rn 4:营运分析rn 5:系统管理rn 6:信息发布rn 7:服务质量信息考核',rn ROLE_ID numeric(6) not null comment '角色ID',rn ID_OWNER numeric(18),rn USER_STAT varchar(1) not null comment '0:注销状态rn 1:正常状态',rn MEMO VARCHAR2(200) comment '备注',rn CJSJ datetime,rn CJCZY varchar(30),rn ZHDLSJ datetime,rn ZHDLIP varchar(15),rn primary key (ID)rn)rntablespace TS_BUSI;
插入一条数据库语句报[Error Code: 907, SQL State: 42000] ORA-00907: 缺失括号
create table tbagreement (rn "contract_no" VARCHAR(26) not null default ' ',rn "in_client_no" VARCHAR(20) not null default ' ',rn "bank_no" VARCHAR(2) not null default ' ',rn "prd_manager" VARCHAR(6) not null default ' ',rn "trans_date" INTEGER not null default '0',rn "trans_time" INTEGER not null default '0',rn "channel" VARCHAR(1) not null default ' ',rn "oper_no" VARCHAR(32) not null default ' ',rn "branch_no" VARCHAR(16) not null default ' ',rn "close_date" INTEGER not null default '0',rn "status" VARCHAR(1) not null default ' ',rn "reserve" VARCHAR(250) not null default ' ',rn constraint PK_TBAGREEMENT primary key ("contract_no")rn);rn
急 oracle数据库 出现ORA-00907: 缺少右括号 在线等
实在不知道 啥原因rnrnORA-00907: 缺少右<em>括号</em> rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: ORA-00907: 缺少右<em>括号</em>rnrn源错误: rnrnrn行 20: 'Dim cmd1 As New Data.SqlClient.SqlCommand("select userid,username,truename, online,(select count(id) from chat where dusername='" & Trim(Session.Item("curuser_username")) & "' and susername=qx_users.username and readed='0') as msgcount from qx_users order by online desc", connmy)rn行 21: Me.TblUser.Rows.Clear()rn行 22: Using dr1 As OleDb.OleDbDataReader = cmd1.ExecuteReaderrn行 23: Do While dr1.Readrn行 24: Dim row1 As New TableRowrn rnrn源文件: E:\厦门车管\CLJSGL\Chatmain.aspx.vb 行: 22 rnrn堆栈跟踪: rnrnrn[OleDbException (0x80040e14): ORA-00907: 缺少右<em>括号</em>]rn System.Data.OleDb.OleDbCommand.ExecuteCommandTextForMultpleResults(tagDBPARAMS dbParams, Object& executeResult) +114rn System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +163rn System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +56rn System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +105rn System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +92rn System.Data.OleDb.OleDbCommand.ExecuteReader() +6rn Chartmain.LoadUserList() in E:\厦门车管\CLJSGL\Chatmain.aspx.vb:22rn Chartmain.Page_Load(Object sender, EventArgs e) in E:\厦门车管\CLJSGL\Chatmain.aspx.vb:62rn System.Web.UI.Control.OnLoad(EventArgs e) +80rn System.Web.UI.Control.LoadRecursive() +49rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3750rnrn
java.sql.SQLException: ORA-00907: missing right parenthesis
java.sql.SQLException: ORA-00907: missing right parenthesisrnrnrn为什么显示缺少右<em>括号</em>啊?我怎么找都找不到?rnrnpublic String reptSpReclaimCompar2() rn vtwegList = vbakpManager.getVtwegList();rn if (!"1".equals(dosearch)) return SUCCESS;rn vtwegList = vbakpManager.getVtwegList();rn if (!"1".equals(dosearch)) return SUCCESS;rnrn AllUsers user=getAllLoginInfo();rn String usId = user.getLoginId();rn String vbkursOfUser = "";rn String vtwegsOfUser = "";rn if (!"1".equals(user.getHqSign())) rn vbkursOfUser = vbakpManager.getVbkursOfUser(usId);rn vtwegsOfUser = vbakpManager.getVtwegsOfUser(usId);rn rn this.pageList = reptManager.reptSpReclaimCompar2(user.getHqSign(), vbkursOfUser, vtwegsOfUser, vtweg, vkbur, kunnr, beginDate, endDate);rn return SUCCESS;rn
ORA-00907: 缺少右括号??TOAD,SQL*Plus里能执行
C#,ASP。NET里面不能执行,如下SQL,奇怪。。。。。。。rn[code=SQL]select METERID,DEVICETYPE,max(case when TO_CHAR(DDATE,'yyyymmdd') =TO_CHAR(TO_DATE('2010-4-17','yyyy-mm-dd'),'yyyymmdd') then nvl(METERNLLJ,0) else 0 end) as data1,max(case when TO_CHAR(DDATE,'yyyymmdd') = TO_CHAR(TO_DATE('2010-4-18','yyyy-mm-dd'),'yyyymmdd') then nvl(METERNLLJ,0) else 0 end) as data2,(max(case when TO_CHAR(DDATE,'yyyymmdd') = TO_CHAR(TO_DATE('2010-4-18','yyyy-mm-dd'),'yyyymmdd') then nvl(METERNLLJ,0) else 0 end)-max(case when TO_CHAR(DDATE,'yyyymmdd') = TO_CHAR(TO_DATE('2010-4-17','yyyy-mm-dd'),'yyyymmdd') then nvl(METERNLLJ,0) else 0 end)) as METERNLLJ,max(case when TO_CHAR(DDATE,'yyyymmdd') = TO_CHAR(TO_DATE('2010-4-17','yyyy-mm-dd'),'yyyymmdd') then DEVICESTATUS else 0 end) as DEVICESTATUS1,max(case when TO_CHAR(DDATE,'yyyymmdd') = TO_CHAR(TO_DATE('2010-4-18','yyyy-mm-dd'),'yyyymmdd') then DEVICESTATUS else 0 end) as DEVICESTATUS2 from TMPTODAY WHERE DEVICETYPE=16 AND METERID IN (SELECT METERNO FROM TDOOR_METER WHERE METERTYPE=16 ) group by METERID, DEVICETYPE[/code]
在oracle中建表出现ORA-00907: 缺少右括号错误,
SQL> create table yangou(rn 2 id int(32) not null primary key,rn 3 name varchar(30) not null);rnrnid int(32) not null primary key,rn *rnERROR 位于第 2 行:rnORA-00907: 缺少右<em>括号</em>rn这是我的建表代码,刚学oracle,请大家帮忙,谢谢rncreate table yangou(rn 2 id varchar(32) not null primary key,rn 3 name varchar(30) not null);如果是这样的,就没有错误.rnrn
oracle删除表数据时 ORA-00907: 缺少右括号
sql语句:delete from test.tableA;rn就提示:ORA-00907: 缺少右<em>括号</em>rn我不懂,我哪写错了?~~
缺失括号
<em>缺失</em>的<em>括号</em>时间限制:1秒空间限制:65536K一个完整的<em>括号</em>字符串定义规则如下:1、空字符串是完整的。2、如果s是完整的字符串,那么(s)也是完整的。3、如果s和t是完整的字符串,将它们连接起来形成的st也是完整的。例如,&quot;(()())&quot;, &quot;&quot;和&quot;(())()&quot;是完整的<em>括号</em>字符串,&quot;())(&quot;, &quot;()(&quot; 和 &quot;)&quot;是不完整的<em>括号</em>字符串。牛牛有一个<em>括号</em>字符串s,现在需要在其中任意位置尽
oracle 使用union提示ORA-00907:缺少右括号
在使用union的时候提示:ORA-00907:缺少右<em>括号</em> 此原因是因为在union的左边和右边都有order by,因此需要去掉一边的order by,保留一个即可。 select * from  (  select id,name from emp order by name union  select id,name from emp )
执行ORACLE SQL语句,报ora-00907 缺少右括号
select slm,substr(id,1,1) lb,sum(zajs) ajsnum,sum(wz) wznum,sum(tzz) tzznum,sum(dt) dtnum from ywk_xmxx join xtwh_struct_class on dh like 'substr(id,1,1)%' where length(slh)=2 and rnjgrq>=To_date(2010-7-1 00:00:00,'yyyy-mm-dd hh:mm:ss') and rn jgrq) group by slm,substr(id,1,1) rnrn请各位大侠帮忙分析下,谢谢
java.sql.SQLException: ORA-00936: 缺失表达式
各位大侠帮帮忙啊,运行下面的SQL语句时总是出现“<em>缺失</em>表达式”的错误rnsql语句如下:rnString sql1="insert into t_tap_storehouse_top (f_code,f_batchnumber,f_company,f_applicant,f_telephone,f_employer,f_workarea,f_shipsname,f_applicantiondate,f_recipient,f_recipientdate,f_notice,f_noticedate,f_checkpeople,f_checkdate,f_signature,f_signaturedate)values ('"+code+"','"+batchnumber+"','"+company+"','"+applicant+"','"+telephone+"',"+employer+",'"+workarea+"','"+shipsname+"',to_date('"+applicantiondate+"','yyyy-mm-dd'),'"+recipient+"',to_date('"+recipientdate+"','yyyy-mm-dd'),"+i+",to_date('"+noticedate+"','yyyy-mm-dd'),'"+checkpeople+"',to_date('"+checkdate+"','yyyy-mm-dd'),"+j+",to_date('"+signaturedate+"','yyyy-mm-dd'))";rn其中i,j为int型
--- Cause: java.sql.SQLException: ORA-00907: missing right parenthesis
rn rn select * from (rn select rownum rowcount,a.city_code city_code,a.order_id order_id,a.create_date create_date,a.gift_package_name gift_package_name,b.product_name product_name,a.number_resource number_resource,a.fee_value fee_value,a.PAY_WAY_NAMErn from(rn select a.city_code,a.order_id,a.resource_id,a.create_date,a.gift_package_name,b.number_resource,a.fee_value,a.PAY_WAY_NAMErn from(rn select a.city_code,a.order_id,a.resource_id,a.create_date,b.gift_package_name gift_package_name,a.fee_value,a.PAY_WAY_NAMErn from(rn select a.city_code,a.order_id,d.resource_id,f.create_date,e.fee_value,g.PAY_WAY_NAMErn from es_order_info_t a,es_order_prod_inst_t b,es_product_inst_t c,es_prod_item_inst_t d,es_pay_fee_item_t e,es_shop_alipay_control_t f,es_pay_way_t grn where a.order_id = b.order_idrn and b.product_inst_id = c.product_inst_idrn and c.product_inst_id = d.product_inst_idrn and d.product_inst_id = e.product_inst_idrn and a.order_id = f.register_numberrn and a.PAY_WAY = g.PAY_WAYrn and c.product_id = #productId#rn rn and a.pay_way in (1,2)rn rn rn and a.pay_way = #payWay#rn rn and a.complete_status in ('1','2')rn and f.accept_status in ('1','0')rn ) a inner join es_mobile_package_t b on a.resource_id = b.gift_package_idrn ) a left joinrn (rn select a.city_code,a.order_id,a.resource_id,a.create_date,b.number_resource number_resource,a.PAY_WAY_NAMErn from(rn select a.city_code,a.order_id,d.resource_id,f.create_date,e.fee_value,g.PAY_WAY_NAMErn from es_order_info_t a,es_order_prod_inst_t b,es_product_inst_t c,es_prod_item_inst_t d,es_pay_fee_item_t e,es_shop_alipay_control_t f,es_pay_way_t grn where a.order_id = b.order_idrn and b.product_inst_id = c.product_inst_idrn and c.product_inst_id = d.product_inst_idrn and d.product_inst_id = e.product_inst_idrn and a.order_id = f.register_numberrn and a.PAY_WAY = g.PAY_WAYrn and c.product_id = #productId#rn rn and a.pay_way in (1,2)rn rn rn and a.pay_way = #payWay#rn rn and a.complete_status in ('1','2')rn and f.accept_status in ('1','0')rn ) a inner join es_number_resource_t b on a.resource_id = b.number_resourcern ) b on a.order_id = b.order_idrn ) a left joinrn (rn select a.city_code,a.order_id,a.resource_id,a.create_date,b.product_name product_name,a.fee_value,a.PAY_WAY_NAMErn from(rn select a.city_code,a.order_id,d.resource_id,f.create_date,e.fee_value,g.PAY_WAY_NAMErn from es_order_info_t a,es_order_prod_inst_t b,es_product_inst_t c,es_prod_item_inst_t d,es_pay_fee_item_t e,es_shop_alipay_control_t f,es_pay_way_t grn where a.order_id = b.order_idrn and b.product_inst_id = c.product_inst_idrn and c.product_inst_id = d.product_inst_idrn and d.product_inst_id = e.product_inst_idrn and a.order_id = f.register_numberrn and a.PAY_WAY = g.PAY_WAYrn and c.product_id = #productId#rn rn and a.pay_way in (1,2)rn rn rn and a.pay_way = #payWay#rn rn and a.complete_status in ('1','2')rn and f.accept_status in ('1','0')rn ) a inner join es_main_product_t b on a.resource_id = b.product_suite_idrn ) b on a.order_id = b.order_idrn where a.city_code = #cityCode# rn and a.create_date >= to_date(#beginDate#,'yyyy-mm-dd hh24:mi:ss')rn and a.create_date < #endRowCount#rn ) where rowcount >= #beginRowCount#rn rn rnrnrnrn本来可以正常运行但是加上rn and a.pay_way in (1,2)rn rn rn and a.pay_way = #payWay#rn rn就会报题目的异常 哪个大侠给看看
oracle数据库建表时出现错误:缺失括号
oracle数据库建表时出现错误:<em>缺失</em>右<em>括号</em> 这个错误一般都是用了oracle中没有的语法导致的,比如:identity函数是SQLSERVER中的,oracle中不能用;数字型定义在oracle中须全写number,只写num也会报这个错误。 调试方法:逐行注释
RANK的时候报缺失括号(大虾帮忙看下)
以下是SQL语句rnselect NO1,rank() over(order by CreateDate desc) from tablern放在PL/SQL中可以执行,但是放在程序中就报错说<em>缺失</em>右<em>括号</em>。哪位大虾知道为什么啊=。=
紧急求助 SQL语句编译后提示缺失括号
select 地市名称, 堤名,起始桩号,终止桩号,日期,超设防水位堤段长度,超警戒水位堤段长度,超保证水位堤段长度,备注 from ( select 报表编号,堤名,起始桩号,终止桩号,日期,超设防水位堤段长度,超警戒水位堤段长度,超保证水位堤段长度,备注 from TBRT1404_DFBF) XG left join (select 报表编号,地市名称,填报单位名称 from TBRT0001_BTXX left join TBRT0003_DISTRICT on TBRT0001_BTXX.行政区划代码=TBRT0003_DISTRICT.县区代码 where TBRT0001_BTXX.审核标识='110' 6 ) XZ on XG.报表编号=XZ.报表编号)and 日期 between to_date('2001-06-01','yyyy-MM-dd') and to_date('2009-06-12','yyyy-MM-dd') order by 地市名称, 堤名
oracle建表时出现缺失括号问题
在iSQL*PLUS中输入如下内容建表,该表参照的表都已经建好rnrncreate table tb_fault_inforn(rnfid int identity(1,1) primary key,rnfsim char(40) not null,rnfdet char(600) not null,rncompany char(40) not null,rnftime datetime not null,rngid int foreign key references tb_group(gid), rnfsid int foreign key references tb_fault_state(fsid),rnaddf char(600),rnfnum char(10) not null,rnfc int not nullrn);rnrn出现如下问题:rnfid int identity(1,1) primary key,rn *rnrn第 3 行出现错误: rnORA-00907: <em>缺失</em>右<em>括号</em>rnrn都改了一天了,希望各位朋友帮帮忙,我很着急 rnrn rnrn rn
oracle pl/sql 插入数据缺失括号00907错误
急!!! 急!!! 急!!!rnrnCREATE TABLE mrecord (rn id NUMBER(8) NOT NULL,rn smemberid VARCHAR2(50) NULL,rn stestid NUMBER(8) NULL,rn stesttitle VARCHAR2(100) NULL,rn sdate VARCHAR2(100) NULL,rn sstatus CHAR(20) NULL,rn sscore VARCHAR2(100) NULL,rn sanswertitle VARCHAR2(100) NULL,rn sevaluation VARCHAR2(4000) NULL,rn ssuggestion VARCHAR2(4000) NULL,rn CONSTRAINT PK_mrecord PRIMARY KEY (id)rn ) ;rnrninsert into UDEMO.MRECORD (ID, SMEMBERID, STESTID, STESTTITLE, SDATE, SSTATUS, SSCORE, SANSWERTITLE, SEVALUATION, SSUGGESTION)rnvalues (1547, 'xyy', 115, '个人信息', to_date(''2010-03-17 13:37:00'', 'YYYY-MM-DD HH24:MI:SS'), 1, '', '', '', '');rnrninsert into UDEMO.MRECORD (ID, SMEMBERID, STESTID, STESTTITLE, SDATE, SSTATUS, SSCORE, SANSWERTITLE, SEVALUATION, SSUGGESTION)rnvalues (1651, 'ly', 163, '个人信息', to_date(''2010-03-18 18:00:00'', 'YYYY-MM-DD HH24:MI:SS'), 1, '60', '绩效管理与工作分析能力有待提高', '评估结果表明,基于这次的培训内容,您对“绩效管理与工作分析”知识和技能的掌握还有待提高,您没有很好的把所学的知识灵活运用到工作中,对于绩效管理与工作分析的重要性,以及绩效管理与工作分析的相关工作流程,您可能还需要继续学习。但绩效管理与工作分析难以操作的地方在于方法的选用与细节的操作,基于观念,让公司员工能够真正认可,是一件非常困难的事情,这需要有效的沟通;细节的操作,能够做到公平公正,科学客观,也是需要相关知识的积累与实践,在这些方面的操作,您可能需要投入更多的精力去学习与积累,只要您不断努力,您也会是最棒的! ', '');rn
Oracle建表提示缺失括号,求解决
[code=sql]create table teach(rn id number(8) primary key,rn item nvarchar2(10) not null,--评分项目rn criterion nvarchar2(50) not null,--评分标准rn grade number(3) not null--分值rn);[/code]rn去掉最后的分号正常执行,如果不去掉提示ORA-00907
缺失右括号"的错误)">使用别名应注意(报"缺失括号"的错误)
(Oracle测试)使用SQL语句的select语句是经常会用到字段和表的的别名,使用要注意,字段的别名前面可以加as关键字,或是省略不写,但是表名的别名前面不可以加as,否则会报如下错误: [color=red]命令出错, 行: 11 列: 20 错误报告: SQL 错误: ORA-00907: <em>缺失</em>右<em>括号</em> 00907. 00000 - &quot;missing right parenth...
ORACLE子查询有order by 报缺失括号
[code=sql]select PM_MODEL_CODE,(select WD_IN_TIME from T_WIP_DETAIL where WD_MODEL_CODE=m.PM_MODEL_CODE and ROWNUM=1 order by WD_IN_TIME) WD_IN_TIMErn from T_PM_MO_BASE m group by PM_MODEL_CODE[/code]rnrn<em>括号</em>里我又必须按时间排序,然后取第一个,求解决方法
oracle写了个简单的分页,一直报右括号缺失
存储过程-------rncreate or replace procedure proc8(v_in_table in varchar,v_in_pagesize in number,v_in_pagenow in number,v_out_result out pack2.my_cursor) isrn 2 v_begin number(10);rn 3 v_end number(10);rn 4 v_sql varchar2(3000);rn 5 beginrn 6 v_begin:=v_in_pagesize*(v_in_pagenow-1)+1;rn 7 v_end:=v_in_pagesize*v_in_pagenow;rn 8 v_sql:='select name into v_name from (select a1.*,rownum rn from (select * from '||v_in_table||') a1 where rownum'||v_begin;rn 9 open v_out_result for v_sql;rn 10 end;rn 11 /rn rnjava程序--------rn Class.forName("oracle.jdbc.driver.OracleDriver");rn rn ct=DriverManager.getConnection("jdbc:oracle:thin:@10.1.12.184:1521:orcl","system","manager");rn cs=ct.prepareCall("call proc8(?,?,?,?)");rn cs.setString(1, "student");rn cs.setInt(2,2);rn cs.setInt(3,1);rn cs.registerOutParameter(4,oracle.jdbc.OracleTypes.CURSOR);rn cs.execute();rn rs=(ResultSet)cs.getObject(4);rn while(rs.next())rn System.out.println("name="+rs.getString("name")+" no="+rs.getInt("no"));rn rnrn错误------rnjava.sql.SQLException: ORA-00907: <em>缺失</em>右<em>括号</em>rnORA-06512: 在 "SYSTEM.PROC8", line 9rnORA-06512: 在 line 1
oracle 用rownum作分页查询时 提示缺失括号??
SELECT * FROM s.employees WHERE employeeid IN(SELECT employeeid FROM s.tax WHERE ROWNUM<=6 ORDER BY tax DESC) rn不知道错在哪了?
解析sql语句时出现缺失括号
select tb.hospital_no,sum(tb.costs),sum(tb.rc),sum(tb.xy_costs),sum(tb.zy_costs),sum(tb.cy_costs),rnsum(tb.matri_costs),sum(tb.blood_costs),sum(tb.x_costs),sum(tb.lab_costs),sum(tb.bed_costs),rnsum(tb.other_costs),sum(tb.fl_costs),sum(tb.o_costs),sum(tb.zc_costs),sum(tb.food_costs),rnsum(tb.ss_costs),sum(tb.zl_costs),sum(tb.hl_costs),sum(tb.jl_costs),sum(tb.ect_costs),rnsum(tb.dsa_costs),sum(tb.mri_costs),sum(tb.ct_costs) rnfrom (select (case r.hospital_no when '01' then '城中院区' else '阳湖院区'end) hospital_no,t.patient_id,t.visit_id,rndecode(sum(t.costs),0, '', to_char(sum(t.costs), '9999999999.99')) as costs, count(*) as rc, rndecode(sum(t.xy_costs),0, '', to_char(sum(t.xy_costs), '9999999999.99')) as xy_costs, rndecode(sum(t.zy_costs),0, '', to_char(sum(t.zy_costs), '9999999999.99')) zy_costs, rndecode(sum(t.cy_costs),0, '', to_char(sum(t.cy_costs), '9999999999.99')) cy_costs, rndecode(sum(t.matri_costs),0, '', to_char(sum(t.matri_costs), '9999999999.99')) matri_costs, rndecode(sum(t.blood_costs),0, '', to_char(sum(t.blood_costs), '9999999999.99')) blood_costs, rndecode(sum(t.x_costs),0, '', to_char(sum(t.x_costs), '9999999999.99')) x_costs, rndecode(sum(t.lab_costs),0, '', to_char(sum(t.lab_costs), '9999999999.99')) lab_costs, rndecode(sum(t.bed_costs),0, '', to_char(sum(t.bed_costs), '9999999999.99')) bed_costs, rndecode(sum(t.other_costs),0, '', to_char(sum(t.other_costs), '9999999999.99')) other_costs, rndecode(sum(t.fl_costs),0, '', to_char(sum(t.fl_costs), '9999999999.99')) fl_costs, rndecode(sum(t.o_costs),0, '', to_char(sum(t.o_costs), '9999999999.99')) o_costs, rndecode(sum(t.zc_costs),0, '', to_char(sum(t.zc_costs), '9999999999.99')) zc_costs, rndecode(sum(t.food_costs),0, '', to_char(sum(t.food_costs), '9999999999.99')) food_costs, rndecode(sum(t.ss_costs),0, '', to_char(sum(t.ss_costs), '9999999999.99')) ss_costs, rndecode(sum(t.zl_costs),0, '', to_char(sum(t.zl_costs), '9999999999.99')) zl_costs, rndecode(sum(t.hl_costs),0, '', to_char(sum(t.hl_costs), '9999999999.99')) hl_costs, rndecode(sum(t.jl_costs),0, '', to_char(sum(t.jl_costs), '9999999999.99')) jl_costs, rndecode(sum(t.ect_costs),0, '', to_char(sum(t.ect_costs), '9999999999.99')) ect_costs, rndecode(sum(t.dsa_costs),0, '', to_char(sum(t.dsa_costs), '9999999999.99')) dsa_costs, rndecode(sum(t.mri_costs),0, '', to_char(sum(t.mri_costs), '9999999999.99')) mri_costs, rndecode(sum(t.ct_costs),0, '', to_char(sum(t.ct_costs), '9999999999.99')) ct_costs rnfrom HIS.BI_YBJZ_DETAIL t rnleft join his.dept_vs_class q on t.dept_code = q.dept_code left join his.dept_class r on q.ksbm = r.ksbmrnwhere t.js_date >= trunc(sysdate, 'yyyy') and t.js_date <= trunc(sysdate) and r.hospital_no is not null group by r.hospital_no, t.patient_id, t.visit_id ) tb group by tb.hospital_no
SQL语句编译后提示缺失括号
select TBL_TOPIC.* from TBL_TOPIC rn where boardId=1 rn and topicId not in (select topicId from TBL_TOPIC where boardId=1 and rownum<20 order by publishTimern正确rnrn请问怎么回事啊?
缺失括号+括号匹配深度
<em>缺失</em>的<em>括号</em> 题目描述 一个完整的<em>括号</em>字符串定义规则如下: 1、空字符串是完整的。 2、如果s是完整的字符串,那么(s)也是完整的。 3、如果s和t是完整的字符串,将它们连接起来形成的st也是完整的。 例如,"(()())", ""和"(())()"是完整的<em>括号</em>字符串,"())(", "()(" 和 ")"是不完整的<em>括号</em>字符串。 牛牛有一个<em>括号</em>字符串s,现在需要在其中任意位置尽量少地添加<em>括号</em>,将...
Caused by: java.sql.SQLException: ORA-00936: 缺失表达式
大侠帮忙看看,这句hql语句有问题吗?rnrnFrom Permission a where a not in (select b.permissions From Depts b where b.id= ? )rn报如下错误rnCaused by: java.sql.SQLException: ORA-00936: <em>缺失</em>表达式rnrn
报错“缺少右括号
请问各位:我把Oracle9i和自己用vc写的程序放在同一台电脑上,执行select scott.emp.*,(select dname from scott.dept where scott.dept.deptno=scott.emp.deptno) from scott.emprn 就会报错“缺少右<em>括号</em>”,VC的程序放在只装客户端的电脑上运行就正常,那位大侠遇到这种情况的
Oracle 缺少右括号。。。
创建视图如下:rn......rn--主要内容:rnselect name,(case when nvl(sid,'') is null then cast(studentid as varchar(36)) else ybkh end case) as studentid rnfrom student;rn......rnrnrn创建的时候报错:缺少右<em>括号</em>。。。rn请大家帮帮忙看下额。。。rncase的作用是:如果sid列为空,则显示studentid列,如果sid列不空,则直接显示
缺少右括号问题
为什么这句话在PL/sql里执行没有问题。 SELECT WHSCODE,sum(CASE when status='空' then 1 else 0 end) NULLTorrNums FROM WAREHOUSEPOSITION GROUP BY WHSCODE rn带到程序中,就报错,说缺少右<em>括号</em>。我原来以为是单引号截断sql语句。但是后来改成 CASE when 1=1 then 1 else 0 endrn仍然报错。不知道什么原因。请帮忙。
ora 丢失右括号
select * from ( select distinct * from ( select ctm.id_ ctmId , ctm.name_ ctmName , ctr.id_ ctrId , ctr.name_ ctrName , ctr.email_ ctrEmail , ctr.mphone_ ctrMphone , ctr.brithday_ ctrBrithday from contacter_ ctr inner join customer_ ctm on ctr.fk_customer_ = ctm.id_ inner join user_ u on ctm.fk_user_ = u.id_ inner join ctm_ctg_lk_ ctmCtg on ctmCtg.fk_ctm_ = ctm.id_ inner join ctm_ctg_ cc on ctmCtg.fk_ctm_ctg_ = cc.id_ where ctr.brithday_ like '%-04-12' and u.id_ in '5dfaf039298290ee0129d51355e5029e' regexp_like( ctr.mphone_ , '^((13[0-9])|(15[^4,\D])|(18[0,5-9]))\d8$' ) ) order by ctmId asc )where rownum <= ?rnrnrn高手来帮忙看看这是怎么回事rn
缺少右括号错误
rn这段代码ie老报错:缺少‘)’ 。高手帮忙看看咋回事儿吧。
jarToexe 将 jar 转成 exe 的工具下载
好用的jar转exe工具,还是exe后缀的可执行文件 相关下载链接:[url=//download.csdn.net/download/plmoknhlg/1989951?utm_source=bbsseo]//download.csdn.net/download/plmoknhlg/1989951?utm_source=bbsseo[/url]
Struts Tiles标签学习下载
Struts Tiles标签学习PPT教学文档 相关下载链接:[url=//download.csdn.net/download/pan_jian_ping/3093934?utm_source=bbsseo]//download.csdn.net/download/pan_jian_ping/3093934?utm_source=bbsseo[/url]
windows sdk下载
个人的sdk,有以下数据结构:hashtable 红黑树 多级hash 相关下载链接:[url=//download.csdn.net/download/menggucaoyuan/5092027?utm_source=bbsseo]//download.csdn.net/download/menggucaoyuan/5092027?utm_source=bbsseo[/url]
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo
我们是很有底线的