Missing Expression when selecting all columns and one more

后端 未结 2 1586
说谎
说谎 2021-01-19 04:33

This kind of query would work perfectly in SQL Server, but it does not work in Oracle.

select issueno, * from SOMETABLE;

The error message

相关标签:
2条回答
  • 2021-01-19 05:06

    Try this, when working with oracle db you need alias when you use column name along with *

    select issueno, A.* from SOMETABLE A;
    
    0 讨论(0)
  • 2021-01-19 05:11

    On Oracle you have to include the table name or an alias to use the *. Try this:

    select issueno, SOMETABLE.*
    from SOMETABLE;
    
    0 讨论(0)
提交回复
热议问题