sql - A query: select * returns data, but select Column does not return results -


I have such a query:

  select pln * Plan pln where pln.id = '0003' and pln.seq = (select plan_s seq) pln_es plan where pln_es.id = pln.emplid and pln_es.career = pln.career and pln_es.nbr = pln Nbr and pln_es.dt = Pln.dt)  

However, if I do (choose columns ...), using the same conditions, this data does not return! I have no meaning

Here is the query that does not return results:

  plan. Select Pln.MYDATE from the plan where pln.id = '0003' and pln.seq = (max select Pln_es.seq) pln_es from the plan where pln_es.id = pln.emplid and pln_es.career = pln.career and pln_es.nbr = Pln.nbr and pln_es.dt = pln.dt) Do anyone know why this may be of happiness? The column is a date per copy, and DB Oracle 10g 

Assuming you use slope transaction segregation level, And that the data is not changing between hanging, that should not be what you have described, and possibly a bug, the query chooses to choose a column versus. The selection of all can easily be very different if there is a cover index for a column, the fact that the bug will appear in a query but no other surprises (similarly, if there is no bug, but you are dirty If you are allowed to read, you can get them from a plan, but not the other.) You can try to rebuild sequences that generate false results By used. You can also see if you're using any feature that is often visible near the phrase "incorrect result" such as the list of Oracle bug fixes.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -