Error: ORA-00917: missing comma 00917. 00000 - "missing comma"

Farsan Rashid

I am getting missing comma error but where am i missing that comma?

DELETE FROM user_sdo_geom_metadata WHERE TABLE_NAME = 'VIEW_POINT';
INSERT INTO user_sdo_geom_metadata
(TABLE_NAME,
 COLUMN_NAME,
 DIMINFO,
 SRID)
 VALUES (
'VIEW_POINT',
'GEOMETRY',
 MDSYS.SDO_DIM_ARRAY( -- upper and lower bounds for the view, tolerance
  MDSYS.SDO_DIM_ELEMENT('X', -180, 180, 0.5),
  MDSYS.SDO_DIM_ELEMENT('Y', -90, 90, 0.5)),
  SRID FROM USER_SDO_GEOM_METADATA WHERE TABLE_NAME ='AG_POINTS'
)
;
 commit;
a_horse_with_no_name

When the source of the insert data is a SELECT statement you can't use the values clause:

INSERT INTO user_sdo_geom_metadata
  (table_name, column_name,diminfo, srid)
SELECT 'VIEW_POINT',
       'GEOMETRY',
       mdsys.sdo_dim_array( -- upper and lower bounds for the view, tolerance
         mdsys.sdo_dim_element('X', -180, 180, 0.5),
         mdsys.sdo_dim_element('Y', -90, 90, 0.5)),
       srid 
FROM user_sdo_geom_metadata 
WHERE table_name = 'AG_POINTS'

;

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ORA-00917: missing comma error

From Dev

ORA-00917, missing comma

From Dev

ORA-00917, missing comma

From Dev

C# {"ORA-00917: missing comma"} INSERT QUERY ERROR

From Dev

Please help - ORA-00917: missing comma insert error

From Dev

ORA-00917: Missing Comma SQL Oracle error

From Dev

Missing Comma, oracle ORA-00917

From Dev

ORA-00917 missing comma in Powershell

From Dev

ORA-00917 Missing Comma, but it isn't missing?

From Dev

ORA-00917: missing comma when insert not exist in oracle

From Dev

java.sql.sqlexpcetion:ORA-00917:missing comma

From Dev

ORA-00917: missing comma when insert not exist in oracle

From Dev

sql oracle, error "PL/SQL: SQL Statement ignored" and "PL/SQL: ORA-00917: missing comma"

From Dev

java.sql.SQLException: ORA-00917: missing comma while Inserting rows in a table

From Dev

java.sql.SQLException: ORA-00917: missing comma while Inserting rows in a table

From Dev

Oracle SQL missing comma error

From Dev

error 3075 syntax missing comma

From Java

Missing comma in Oracle insert

From Dev

Oracle SQL Missing Comma

From Dev

Oracle Missing Comma

From Dev

Missing comma and space

From Dev

Seach function in Access syntax error: missing a comma in query expression

From Java

Where is the missing comma or () in this Julia histogram?

From Dev

What's wrong with this HQL? Where is the missing comma?

From Dev

Issue warning for missing comma between list items bug

From Dev

PL/SQL: ORA-00917 Compilation failed, line 49 (11:56:09) The line numbers associated with

From Dev

ora:00936 Missing Expression error

From Dev

SQL Error: ORA-00933: SQL command not properly ended 00933. 00000 - "SQL command not properly ended"

From Dev

ORA-00907: missing right parenthesis error

Related Related

  1. 1

    ORA-00917: missing comma error

  2. 2

    ORA-00917, missing comma

  3. 3

    ORA-00917, missing comma

  4. 4

    C# {"ORA-00917: missing comma"} INSERT QUERY ERROR

  5. 5

    Please help - ORA-00917: missing comma insert error

  6. 6

    ORA-00917: Missing Comma SQL Oracle error

  7. 7

    Missing Comma, oracle ORA-00917

  8. 8

    ORA-00917 missing comma in Powershell

  9. 9

    ORA-00917 Missing Comma, but it isn't missing?

  10. 10

    ORA-00917: missing comma when insert not exist in oracle

  11. 11

    java.sql.sqlexpcetion:ORA-00917:missing comma

  12. 12

    ORA-00917: missing comma when insert not exist in oracle

  13. 13

    sql oracle, error "PL/SQL: SQL Statement ignored" and "PL/SQL: ORA-00917: missing comma"

  14. 14

    java.sql.SQLException: ORA-00917: missing comma while Inserting rows in a table

  15. 15

    java.sql.SQLException: ORA-00917: missing comma while Inserting rows in a table

  16. 16

    Oracle SQL missing comma error

  17. 17

    error 3075 syntax missing comma

  18. 18

    Missing comma in Oracle insert

  19. 19

    Oracle SQL Missing Comma

  20. 20

    Oracle Missing Comma

  21. 21

    Missing comma and space

  22. 22

    Seach function in Access syntax error: missing a comma in query expression

  23. 23

    Where is the missing comma or () in this Julia histogram?

  24. 24

    What's wrong with this HQL? Where is the missing comma?

  25. 25

    Issue warning for missing comma between list items bug

  26. 26

    PL/SQL: ORA-00917 Compilation failed, line 49 (11:56:09) The line numbers associated with

  27. 27

    ora:00936 Missing Expression error

  28. 28

    SQL Error: ORA-00933: SQL command not properly ended 00933. 00000 - "SQL command not properly ended"

  29. 29

    ORA-00907: missing right parenthesis error

HotTag

Archive