2

I have some knowledge about SQL but a complete novice in Oracle. The following sql statement will execute properly in SQL Server. But this doesn't execute in Oracle and throws an error.

select Field1, * from Table1 where SomeField = 0

Please let know how to execute a similar statement in Oracle. The error recieved is as follows:

ORA-00936: missing expression
00936. 00000 -  "missing expression"
Orangecrush
  • 1,970
  • 2
  • 15
  • 26
Unni Kris
  • 3,081
  • 4
  • 35
  • 57
  • I deleted my answer almost immed. because I noticed I made an error-missed an alias. It happens sometimes when you rush... I do not know why you was able to see my answer. – Art Feb 01 '13 at 14:17

2 Answers2

5

Try,

select Field1, a.* from Table1 a where SomeField = 0;
Orangecrush
  • 1,970
  • 2
  • 15
  • 26
1

Simply try:

select Field1, Table1.* from Table1 where SomeField = 0
Vishal Suthar
  • 17,013
  • 3
  • 59
  • 105