oracle 插入数据时缺失右括号??? [问题点数:20分,结帖人cy_name]

Bbs1
本版专家分:0
结帖率 100%
Bbs1
本版专家分:0
Bbs7
本版专家分:14175
Blank
红花 2012年9月 Oracle大版内专家分月排行榜第一
2012年8月 Oracle大版内专家分月排行榜第一
Blank
黄花 2012年10月 Oracle大版内专家分月排行榜第二
2012年7月 Oracle大版内专家分月排行榜第二
Bbs4
本版专家分:1727
Bbs6
本版专家分:5180
Blank
红花 2012年7月 Oracle大版内专家分月排行榜第一
Blank
蓝花 2012年6月 Oracle大版内专家分月排行榜第三
Bbs3
本版专家分:517
Bbs4
本版专家分:1032
Blank
红花 2012年10月 扩充话题大版内专家分月排行榜第一
Blank
黄花 2013年2月 扩充话题大版内专家分月排行榜第二
Blank
蓝花 2013年1月 扩充话题大版内专家分月排行榜第三
Bbs2
本版专家分:170
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请赐教
缺失括号的问题??
[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建表提示缺失括号,求解决
create table teach( id number(8) primary key, item nvarchar2(10) not null,--评分项目 criterion nvarchar2
oracle查询语句老是报ORA-00907缺失括号
-
ORA-00907: 缺失括号问题整理解决
ORA-00907: <em>缺失</em>右<em>括号</em>前言        最近在开发过程中使用<em>oracle</em>数据库,在程序中进行查询数据时遇到了“ORA-00907: <em>缺失</em>右<em>括号</em>”的问题,但是如果直接把sql语句直接在数据库或PL/SQL中执行时,却又能够正常查询,为了解决这个问题,折腾了半天,查找了一些资料,所以就对各种导致出现“<em>缺失</em>右<em>括号</em>”的情况进行了整理总结。行文如下。1 union all中order by 导致
oracle建表时出现缺失括号问题
在iSQL*PLUS中输入如下内容建表,该表参照的表都已经建好 create table tb_fault_info ( fid int identity(1,1) primary key, fsim
orcal 建表 缺失括号 怎么弄?
create table T_KP_USERS ( ID numeric(6) not null auto_increment comment '用户ID', USERNAME varchar(30)
缺失括号问题
最近刚开始学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分不多了,希望大家不吝赐教
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
oracle数据库建表时出现错误:缺失括号
<em>oracle</em>数据库建表时出现错误:<em>缺失</em>右<em>括号</em> 这个错误一般都是用了<em>oracle</em>中没有的语法导致的,比如:identity函数是SQLSERVER中的,<em>oracle</em>中不能用;数字型定义在<em>oracle</em>中须全写number,只写num也会报这个错误。 调试方法:逐行注释
ora-00907 缺失括号3
ora-00907 <em>缺失</em>右<em>括号</em> 刚刚接触Oracle数据库,在使用PL/SQL dev建表的时候,碰到了ora-00907这个错误,在网上找了很多资料,发现别人碰到的那个问题,跟我碰到的这个问题不一样,所以一直没有解决方法,后来,在网上搜索使用<em>oracle</em>建立外键约束的示例,终于发现自己的错误在什么地方了。 系统环境:window 7 旗舰版 <em>oracle</em>数据库:<em>oracle</em>11g 第
创建数据库表时,关于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...
ORA-00907 缺失括号
SELECTrnxmlid.nextval,rn''rnrnrnrnFROM user_tab_columns t WHERE t.TABLE_NAME=vtab;rnrn变量是前面存过定义好的。 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
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中union脚本报“缺少右括号”问题
由于不同的客户他们要求的数据库服务器不一样,有的要求是sqlserver,而有的要求是<em>oracle</em>。所以本周的任务就是把整个项目移植到<em>oracle</em>。本人一直在用sqlserver 2005,而<em>oracle</em>基本是从零开始学,虽然以前上了几节课,可后来也没怎么用,所以基本全换给老师了。废话少说,就当作一次学习的机会吧:sqlserver 2005脚本语句:  select distinct
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 建表缺失括号
CREATE TABLE BSI_AREA( ADCODE VARCHAR(20) NOT NULL, AREANAME VARCHAR(100), AREAPOLYSTR CLOB(1048576)
小弟基于oracle数据库写一个sql语句,出现缺失括号的错误,麻烦大家帮忙看一看
string sql = string.Format("select * from {0} where HC_TIME between to_date({1},'yyyy-mm-dd hh24:mi
【Oracle】ORA-00907:missing right parenthesis右括号缺失
<em>oracle</em>报错:missing right parenthesis; 报错SQL select rownum,rowid from( select rowid rid,a.amt from user a order by amt desc; ) where rownum&amp;lt;10; 这里报错右<em>括号</em><em>缺失</em>,是因为子查询里多了个分号…...
mybatis分页查询时ORA-00907: 缺失括号
mybatis语句:rn[code=text]rnSELECT * FROMrn (SELECT rn id as id,rn appserialnumber as appserialnumber,rn who as who,rn createtime as createtime,rn operatedtype as operatedtype,rn operate as operate,rn operatedobject as operatedobject,rn description as description,rn result as result,rn ROWNUM AS row_numrn FROM server_log ROWNUM < (#startRecord+#total)) t_temprn WHERE t_temp.row_num >= #startRecordrn[/code]rnrn然后控制台打印语句:rn10:06:51,114 DEBUG Connection:27 - ooo Connection Openedrn10:06:51,442 DEBUG PreparedStatement:27 - ==> Executing: select count(*) from server_log rn10:06:51,442 DEBUG PreparedStatement:27 - ==> Executing: select count(*) from server_log rn10:06:51,442 DEBUG PreparedStatement:27 - ==> Parameters: rn10:06:51,442 DEBUG PreparedStatement:27 - ==> Parameters: rn10:06:51,630 DEBUG Connection:27 - ooo Connection Openedrn10:06:51,646 DEBUG PreparedStatement:27 - ==> Executing: SELECT * FROM (SELECT id as id, appserialnumber as appserialnumber, who as who, createtime as createtime, operatedtype as operatedtype, operate as operate, operatedobject as operatedobject, description as description, result as result, ROWNUM AS row_num FROM server_log ROWNUM < (?+?)) t_temp WHERE t_temp.row_num >= ? rn10:06:51,646 DEBUG PreparedStatement:27 - ==> Executing: SELECT * FROM (SELECT id as id, appserialnumber as appserialnumber, who as who, createtime as createtime, operatedtype as operatedtype, operate as operate, operatedobject as operatedobject, description as description, result as result, ROWNUM AS row_num FROM server_log ROWNUM < (?+?)) t_temp WHERE t_temp.row_num >= ? rn10:06:51,646 DEBUG PreparedStatement:27 - ==> Parameters: 0(Integer), 10(Integer), 0(Integer)rn10:06:51,646 DEBUG PreparedStatement:27 - ==> Parameters: 0(Integer), 10(Integer), 0(Integer)rn2014-8-1 10:06:51 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet SearchServlet threw exceptionrnorg.apache.ibatis.exceptions.PersistenceException: rn### Error querying database. Cause: java.sql.SQLException: ORA-00907: <em>缺失</em>右<em>括号</em>rnrn### The error may involve com.itrus.mylog.domain.ServerLog.selectAllServerLog-Inlinern### The error occurred while setting parametersrn### Cause: java.sql.SQLException: ORA-00907: <em>缺失</em>右<em>括号</em>rnrn at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:8)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:77)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:69)rn at com.itrus.mylog.dao.impl.SearchDAOImpl.searchPagination(SearchDAOImpl.java:37)rn at com.itrus.mylog.service.impl.SearchServiceImpl.searchPagination(SearchServiceImpl.java:24)rn at com.itrus.mylog.servlet.SearchServlet.search(SearchServlet.java:53)rn at com.itrus.mylog.servlet.SearchServlet.service(SearchServlet.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: java.sql.SQLException: ORA-00907: <em>缺失</em>右<em>括号</em>rnrn at <em>oracle</em>.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at <em>oracle</em>.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)rn at <em>oracle</em>.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)rn at <em>oracle</em>.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)rn at <em>oracle</em>.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)rn at <em>oracle</em>.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:796)rn at <em>oracle</em>.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1031)rn at <em>oracle</em>.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:836)rn at <em>oracle</em>.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1116)rn at <em>oracle</em>.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)rn at <em>oracle</em>.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:45)rn at $Proxy1.execute(Unknown Source)rn at org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:39)rn at org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:55)rn at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:41)rn at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:216)rn at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:95)rn at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:72)rn at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:75)rn ... 18 morernrn求指点,是语句哪里写错了么?
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
java.sql.SQLException: ORA-00907: 缺失括号
String sqlTablespace = "select upper(f.tablespace_name) \"Tablespace\",d.tot_grootte_mb \"Size MB\",f.total_bytes \"Free MB\","rn + "to_char(round(f.total_bytes/ d.tot_grootte_mb * 100,2),'990.99') \"Percent Free\","rn + "d.autoextensible from (select tablespace_name,round(sum(bytes) /(1024 * 1024), 2) total_bytes,round(max(bytes) / (1024 * 1024),"rn + " 2) max_bytes from sys.dba_free_space group by tablespace_name) f,"rn + "(select dd.tablespace_name,round(sum(dd.bytes)/(1024 * 1024), 2) tot_grootte_mb,"rn + "round(sum(dd.maxbytes)/(1024 * 1024), 2) tot_tbs_mb,dd.autoextensible from sys.dba_data_files dd"rn + "group by dd.tablespace_name,dd.autoextensible) d"rn + " where d.tablespace_name = f.tablespace_name order by f.tablespace_name";
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 数据库使用的是 <em>oracle</em>数据库。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
Oracle09004 ,缺失括号错误
简单的先写一下: 1:我的原因是外键约束写错了。把foreign references改为 references就可以解决问题了!
oracle pl/sql 插入数据缺失括号00907错误
急!!! 急!!! 急!!! CREATE TABLE mrecord ( id NUMBER(8) NOT NULL, smemberid VARCHAR2(50) NULL, stestid NU
oracle insert 方法 分类
1、最基本的insert 语句结构 insert into tablename(列名。。。) values
Oracle sql 报错确实右括号
-
oracle 中某序列不完整、有缺失,如何找出这些缺失的序列号并保存下来?
<em>oracle</em> 中某序列不完整、有<em>缺失</em>,如何找出这些<em>缺失</em>的序列号并保存下来?
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>,但是在数据库中可以运行出来,这是什么原因
java.sql.SQLSyntaxErrorException: ORA-00907: 缺失括号
select * from ( nnselect a.*, ROWNUM rnum from ( nnselect * from SHOP_ORDER nWHERE start_date between to_date(‘2016-08-22 11:34:36’,'yyyy/mm/dd hh24:mi:ss') nand close_date between to_date('2016-09-22 11:34:36','yyyy/mm/dd hh24:mi:ss') ) a where ROWNUM< ?) where rnum >= ?nnnn求各位大神大牛帮帮小弟!!!!
oracle 用rownum作分页查询时 提示缺失括号??
SELECT * FROM s.employees WHERE employeeid IN(SELECT employeeid FROM s.tax WHERE ROWNUM<=6 ORDER BY tax DESC) rn不知道错在哪了?
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列不空,则直接显示
sql语句在数据库中运行正常,但在程序中报缺少右括号错误,求各位大神帮忙解答
@SuppressWarnings({ "rawtypes", "unchecked" }) public Page findPageBySql2(String excontrac
解决:java.sql.SQLSyntaxErrorException ORA-00907: 缺失括号
问题描述:sql语句可以在pl/sql中正确执行,但在mybatis中报错java.sql.SQLSyntaxErrorException ORA-00907: <em>缺失</em>右<em>括号</em>!解决办法:将查询条件中的“#”替换成“$”.原因如下:MyBatis看到 #{}会认为你在给sql中的变量赋值,就像JDBC编程中给问号赋值一样(自动在前后加单引号)也就是说,他把你传入的字符串并没有当做多个值,而是当做一个大...
新手求教,缺失括号异常。
create table UserInfo ( UserId number(5) primary key, ---非空 主键编号 UserName varchar(20) unique not nul
sql语句缺失括号
我是根据前台传过来的年龄段对人员表里的生日字段进行查询 sql语句如下 select * from BC_BCOA_PERSON WHERE PERSON_ID != 0 and PERSON_DEL
ORA-00907: 缺失括号与左括号问题总结
在创建数据表总结如下:  1.date限定字段大小的时候,会报错,比如,将date(12)去掉(12);  2.关键字顺序有误,也会报这样的错;  3.创建表时,如果表有关键字,用双引号括起来;  4.如果创建表时,未对字段中的表设置长度,也会报错;  5.创建主外键约束时外键类型跟主键类型不完全一致,也是会报错的。  ...
一存储过程,提示缺失括号问题
一个按时间做的范围分区,现做了一个通用的存储过程,代码如下: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向各位请教,存储过程该如何改进下。。。
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>里我又必须按时间排序,然后取第一个,求解决方法
SQL语句编译后提示缺失括号
select TBL_TOPIC.* from TBL_TOPIC where boardId=1 and topicId not in (select topicId from TBL_TOPIC
错哪了???提示缺少右括号。。T_T
create or replace Procedure PRO_Get_NowData ( P_FCID VARCHAR2, o_cur out sys_refcursor ) AS V_Comman
缺少右括号错误
var chart = new FusionCharts("swf/Bar2D.swf", "ChartId", "100%", "48
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("<em>oracle</em>.jdbc.driver.OracleDriver");rn rn ct=DriverManager.getConnection("jdbc:<em>oracle</em>: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,<em>oracle</em>.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
缺失括号
<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创建视图提示缺少右括号
1.创建视图中的select 语句单独执行查询没问题,在外面包上 create or replace view v_视图名 as() 时报ORA-00907:<em>缺失</em>右<em>括号</em>rn2.创建视图中的查询语句大体如下rnrn```rn select rn CBS.id,rn CBS.name,rn CBS.ST,rn BBI.id,rn BBI.update_time,rn BBI.rcrd_st rn from CBS left join BBI rn on CBS.id=BBI.idrn where CBS.ST='1'rn order by BBI.update_time desc rn rn```rnrn3:之前没有加上order by条件时可以建视图成功,加上后,内部的select语句单独查询没问题,建视图时报缺少右<em>括号</em>
RANK的时候报缺失括号(大虾帮忙看下)
以下是SQL语句rnselect NO1,rank() over(order by CreateDate desc) from tablern放在PL/SQL中可以执行,但是放在程序中就报错说<em>缺失</em>右<em>括号</em>。哪位大虾知道为什么啊=。=
缺失右括号"的错误)">使用别名应注意(报"缺失括号"的错误)
(Oracle测试)使用SQL语句的select语句是经常会用到字段和表的的别名,使用要注意,字段的别名前面可以加as关键字,或是省略不写,但是表名的别名前面不可以加as,否则会报如下错误: [color=red]命令出错, 行: 11 列: 20 错误报告: SQL 错误: ORA-00907: <em>缺失</em>右<em>括号</em> 00907. 00000 - &quot;missing right parenth...
ORA-00907: 缺少右括号
[img]http://dl2.iteye.com/upload/attachment/0094/0197/219d7536-01cb-3617-8b6b-9454ad67bf83.jpg[/img] 在一个应用系统,提供了运行 ORQCLE SQL 的功能。对于简单的 SQL 语句的运行一切正常,而对于有子查询的复杂 SQL 语句,经常会出现错误。但是,这个语句在 DQL PLUS 中运行...
mybatis java.sql.SQLException: ORA-00907: 缺失括号
在使用spring+mybatis进行应用开发时,使用了mybatis的动态SQL,添加动态查询语句:  
紧急求助 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 地市名称, 堤名
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搞不清楚是怎么回事?请教各位大侠!
oracle删除表数据时 ORA-00907: 缺少右括号
sql语句:delete from test.tableA;rn就提示:ORA-00907: 缺少右<em>括号</em>rn我不懂,我哪写错了?~~
数据库建表的问题 ORA-00907: 缺失括号问题!!!???
报错:ORA-00907: <em>缺失</em>右<em>括号</em>问题!!!???rnrn我的建表脚本如下所示: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;rnrnrn请教各位这是什么错误啊,该如何修改捏?rnrn若在MySQL中会出现rn[img=https://img-bbs.csdn.net/upload/201309/17/1379424206_904450.jpg][/img]rn如图所示错误。rnrn请教各位这是什么错误啊,该如何修改捏?
解析sql语句时出现缺失括号
select tb.hospital_no,sum(tb.costs),sum(tb.rc),sum(tb.xy_costs),sum(tb.zy_costs),sum(tb.cy_costs), s
Oracle 插入数据是报错:ORA-00936 缺失表达式?
insert into schedule_3 (Serialnum,prjectname,projectcode,state,nodename,pedstate,unitcode) rnvaluesrn (rn select a.Serial,rn c.apaname,c.apacode,2,a.ProjectNodename,1,b.unitcodern from Zdt_Model_ProjectPlan a , ZDT_PROJECTUNIT b , code_apanage crn where b.companycode=c.apacodern )rnrnrn这是我执行的sql语句,看起来好像没什么问题啊,可就是执行不了,报错:<em>缺失</em>表达式rnrn各位路过的高手们,请帮帮忙吧。。。
第 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
缺失括号+括号匹配深度
<em>缺失</em>的<em>括号</em> 题目描述 一个完整的<em>括号</em>字符串定义规则如下: 1、空字符串是完整的。 2、如果s是完整的字符串,那么(s)也是完整的。 3、如果s和t是完整的字符串,将它们连接起来形成的st也是完整的。 例如,"(()())", ""和"(())()"是完整的<em>括号</em>字符串,"())(", "()(" 和 ")"是不完整的<em>括号</em>字符串。 牛牛有一个<em>括号</em>字符串s,现在需要在其中任意位置尽量少地添加<em>括号</em>,将...
ORACLE 缺少右括号 紧急求助
rnselect S.STATION_NAME AS station_name, rn(select E.ID from OM_ELEC_DETAIL E where S.ID=E.BASE_ID and rownum<2 order by E.ID desc) AS chargeId rn rn from OM_BASE_STATION S rn rn在ORacle 中运行 报错:缺少右<em>括号</em>;请高手帮我解决,本人很少写ORACLE语句。rnrn解决为谢!!! rn
建表时缺少右括号错误
我以前用的是mssql,现因工作需要转向Oracle,建一个表的时候,老提示缺少右<em>括号</em>:rn sex number(1,0) not null and check(sex=0 or sex=1) and default 0,rn *rnERROR 位于第 6 行:rnORA-00907: 缺少右<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数据库插入数据时报错,ora-00936: 缺失表达式
SQL语句:rnINSERT INTO PubOpAnalysis (ID,Title,Content,Url,Author,Pottime,Source,ReviewNum,ForwardNum,CommentNum,FavoriteNum,SID) VALUES rn (YQFX_PUBOPANALYSIS_IDENTITY.NEXTVAL,'海归大闸蟹登陆','肉质饱满,蟹味悠长 文/羊城晚报记者 梁旭华 rn图/Terry 什么,现在已经有大闸蟹上市了?没错,rn','','梁旭华','2016年05月10日 星期二 ','(《海归大闸蟹登陆》)','','','','',)rnrnrn求 各位大神赐教, 感激涕零。。。。
ORACLE插入数据时的问题
try rn rn OracleConnection testConn=new OracleConnection("User ID=TEST;Data Source=TEST;Password=TEST");rn testConn.Open(); rn OracleCommand cmd1 = new OracleCommand("INSERT INTO LigangTest(ID) VALUES(:ID)",testConn); rn OracleDataAdapter oda = new OracleDataAdapter(cmd1); rn OracleParameter op = new OracleParameter(":ID",OracleType.VarChar,20); rn op.Value = "dfdfdf"; rn op.SourceColumn="ID";rn oda.InsertCommand.Parameters.Add(op); rn oda.InsertCommand.ExecuteNonQuery(); rnrnrncatchrnrnrn程序为什么会异常,不能把"dfdfdf"保存起来,数据表LigangTest就一个字段ID,是VARCHAR2(100)的
Oracle 插入数据时报错
[code=SQL]rnSQL> insert into YN_9110_DYS_90 values('2010-10-01','123','1','444','90','1234456',2);rn rninsert into YN_9110_DYS_90 values('2010-10-01','123','1','444','90','1234456',2)rn rnORA-01861: literal does not match format stringrn rnSQL> show errors;rnNo errorsrn rnSQL> rn[/code]rnrn数据库中有7个字段,第一个是data,第二个到第六个为char,最后一个是numberrn错误是什么东西不匹配string类型嘛? 各位大侠走过路过来帮忙解决一下啊!
缺少右括号问题
为什么这句话在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
VSCode跳出右括号
VSCode自动完成功能会在我们打左<em>括号</em>的时候自动完成右<em>括号</em>,可是,非常郁闷的是,在这个编辑状态下,却无法像其他编辑器一样通过按Tab或Enter键跳出右<em>括号</em>到行尾。 虽然VSCode有强大的按键自定义功能,但初学者看起来还是头晕。 而且居然百度不到,故起此贴。 在这个Issue下找到相对简单的解决方法,就是安装Tabout插件。 https://github.com/Microso...
ora-00907 缺少右括号
我在我的数据库中对另一个数据库建立了链路,并对一个本建了同义词,访问没有问题。rn 我想利用一个过程把这个表的数据导入的我本地服务器中。rn 我建了一个RECORD,中有一个字段类型是DATE的,对应远程表中一个DATE类型字段,rn 但是FETCH后,组成生成的SQL语句的时候,字段的数据由YYYY-MM-DD HH24:MI:SS变成了DD-MM-YY形式了。rn 所以在执行SQL语句时,提示ora-00907 缺少右<em>括号</em>rn 我本地数据的DATE类型格式也为YYYY-MM-DD HH24:MI:SS,但是FETCH后为什么格式变了呢?
oracle中创建完表t_log之后,执行时出现缺失括号的错误,该如何解决
<em>oracle</em>中创建完表t_log之后,执行时出现<em>缺失</em>右<em>括号</em>的错误,百度了一下,有的网友说,把auto increment去掉就可以了,试了一下不行,我检查了一下,语句中不缺右<em>括号</em>,<em>括号</em>也都是英文字符,请问大神们这个问题该咋解决?[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/21.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201807/30/1532950367_420699.jpg][/img]
图书管理系统课程设计下载
图书管理系统课程设计 论文 详细 代码 可以运行 相关下载链接:[url=//download.csdn.net/download/ab325/2912086?utm_source=bbsseo]//download.csdn.net/download/ab325/2912086?utm_source=bbsseo[/url]
静态网页模板(html)下载
这是一个静态网页,可供参考,对于初学者也是比较好的教材 相关下载链接:[url=//download.csdn.net/download/running_deer/3430754?utm_source=bbsseo]//download.csdn.net/download/running_deer/3430754?utm_source=bbsseo[/url]
Windows_Server_2008企业环境管理下载
Windows_Server_2008企业环境管理针对企业安装server2008操作系统后的一些优化和配置 相关下载链接:[url=//download.csdn.net/download/jiaocongcong/3783242?utm_source=bbsseo]//download.csdn.net/download/jiaocongcong/3783242?utm_source=bbsseo[/url]
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo
我们是很有底线的