Java.sql.sqlsyntaxerrorexception: ora-00936: missing expression la gi
INSERT INTO T_VEHICULO VALUES (29122,'','',,,'','', '',,,,,TO_NUMBER(''),TO_NUMBER(''), TO_NUMBER(''),TO_NUMBER(''),TO_NUMBER(''),TO_NUMBER(''),'',,,'','','',TO_NUMBER('')) por Carmina | 07/04/2008 17:21:32 RE: ORA-00936 SELECT GI.ID_AÑO, RB.NO_NIVEL, RB.DS_RUBRO1, CC.ID_CENTRO_COSTOS, CC.DS_CENTRO_COSTOS, GI.MONTO, RB.ID_TIPO_RUBRO, GI.ID_MES, '1' Orden por lvlr | 27/06/2008 16:38:17 RE: ORA-00936 "INSERT INTO SERVICIO VALUES por anim | 30/09/2008 08:02:09 RE: ORA-00936 SQL> select clientes.codigo_empresa, clientes.nombre, provincias.provincia, provincias.nombre from c por FFF | 14/09/2009 14:41:49 RE: ORA-00936 INSERT INTO rcc_reportes (codigo_reporte,nombre,descripcion, id_tipo_reporte ) por FFF | 14/09/2009 14:46:35 RE: ORA-00936 INSERT INTO rcc_reportes (codigo_reporte,nombre,descripcion, id_tipo_reporte ) por Anónimo | 09/11/2009 01:18:55 RE: ORA-00936 CREATE TABLE "DBA1"."PRODUCT_MASTER" ( "PRODUCT_ID" NUMBER(7), "PRODUCT_NAME" VARCHAR2(50) NOT NULL , "CODE" VARCHAR2(10) NOT NULL , "REORDER_THRESHOLD" NUMBER(5), "COST" NUMBER(5), "PRICE" NUMBER(5), CONSTRAINT "PK_INV" PRIMARY KEY ("PRODUCT_ID") VALIDATE , CONSTRAINT "CHK_REORDER" CHECK (NUMBER >= 0) VALIDATE ) TABLESPACE "INVENTORY" por jh | 17/11/2009 07:25:14 RE: ORA-00936 $sql ="INSERT INTO CENTRO_RESPONSABILIDAD (ID,CODIGO, DESCRIPCION, ACTIVO, USR_MOD, FECHA_MODIFICACION, ESTABLECIMIENTO_ID) VALUES (".NULL.",".$_POST["$ccrr_codigo"].",".strtoupper($_POST["ccrr_descripcion"]).",".$_POST["ccrr_activo"].",".$usr_id.",".date('d-m-Y').",".$estab_id.")"; About UsWe are a group of software developers.We enjoy learning and sharing technologies. To improve the site's content, your valuable suggestions are most welcome. Thanks Email : [email protected] Mobile AppsSCJP Quiz ConcretePage.com The ORA-00936: missing expression error is related with the missing of SQL statement syntax and omitted a part of the syntax.
missing expressionIf you forget to use of FROM clause or Column names in your SELECT statement, you will get this error. To solve this error, make sure your SQL Statement or SQL Syntax is written correctly. Check your SQL Statement, if you use extra commas, then remove it if it shouldn’t be in your query.
Don’t forget * or From clause in Select statement as follows. Example 1: SELECT FROM Test_table; ORA-00936: missing expression Example 2: SELECT * Test_table; ORA-00936: missing expression
To solve this error, use * and from in SQL Statement as follows. select * from Test_table;
If you got this error in Update,insert or delete statement, make sure that you have used all the keywords that are required (UPDATE, SET, VALUES, WHERE and etc..) |