It returns the result expression r of the first Boolean expression e that evaluates to true. In other words, Oracle evaluates each Boolean condition to determine whether it is true, and never evaluates the next condition if the previous one is true. The following example uses the searched CASE expression to classify the products based on their list prices:.
In this example, the result set is sorted by the column state when the country is the US and by the column city for all other countries.
Up Next. How do I set the new value only for the specific date and not affect the other dates? Please check if this is realy true, as otheriwse you should take care with constructions such as:. In case that the subquery returns more that one row, you will immediately see ORA single-row subquery returns more than one row.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 2 years, 9 months ago. Active 2 years, 9 months ago. Viewed 10k times. Marmite Bomber Add a comment.
Notify me of follow-up comments by email. Notify me of new posts by email. This site uses Akismet to reduce spam. Learn how your comment data is processed. This is optional. If it is not provided, then all records in the table are updated. Example 7 — Update Using Inline View Another way of updating only the values you want is by using an inline view. Leave a Comment Cancel Reply Your email address will not be published.
0コメント