ora-00936

ORA-00936: missing expression oracle

断了今生、忘了曾经 提交于 2019-11-28 14:21:35
I have this query SELECT DAL_ROWNOTABLE.DAL_ID FROM ( SELECT ticket.id AS "DAL_ID", ROWNUMBER ( Order By ticket.id ) AS "DAL_ROWNUMBER" FROM ticket_table ticket WHERE ( ticket.type = N'I' ) AND ( ticket.tenant IS NULL OR ticket.tenant IN ( SELECT * FROM ( SELECT tenant_group_member.tenant_id FROM tenant_group_member WHERE tenant_group_member.tenant_group = HEXTORAW('30B0716FEB5F4E4BB82A7B7AA3A1A42C') ORDER BY ticket.id ) ) ) ) DAL_ROWNOTABLE WHERE DAL_ROWNOTABLE.DAL_ROWNUMBER BETWEEN 1 AND 21 What is the problem with the allow query that is throwing ORA-00936 missing expression? anyone? Any

Why is selecting specified columns, and all, wrong in Oracle SQL?

穿精又带淫゛_ 提交于 2019-11-27 15:42:15
问题 Say I have a select statement that goes.. select * from animals That gives a a query result of all the columns in the table. Now, if the 42nd column of the table animals is is_parent , and I want to return that in my results, just after gender , so I can see it more easily. But I also want all the other columns. select is_parent, * from animals This returns ORA-00936: missing expression . The same statement will work fine in Sybase, and I know that you need to add a table alias to the animals