Menu

Getting an Exception

vinu
2005-08-25
2013-03-07
  • vinu

    vinu - 2005-08-25

    Hi,
    I am getting an SQLException while executing the
    following query.

    SELECT SUBSTR(ENAME , 3, 4) FROM  EMP
    My database is oracle.The exception is as follows
    -----------------------------------------------------------------------
    org.ldbc.jdbc.jdbcSQLException: Syntax error in SQL statement: SELECT SUBSTR(ENAME [*], 3, 4) FROM  EMP; unexpected token: SUBSTR
    -----------------------------------------------------------------------
    Can i execute the same query for  a different database?

     

Log in to post a comment.