Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: [ask] Boolean type in SELECT statement
Phil,
SQL doesn't recognize BOOLEAN as a valid datatype. Even though you can write a PL/SQL function to return true or false, you can't use that return value in a SQL query. You might try returning 0 or 1 instead.
Jonathan
On Thu, 15 Apr 1999 18:44:43 -0700, "earthlink" <phil_at_amax.com> wrote:
>can any tell me how to apply boolean type in SELECT statement?
>
>e.g.
>
>SELECT *
>FROM my_table
>WHERE my_boolean_func(my_table.applied_field) = true
>
> " my_boolean_func " will return either true or false.
Received on Thu Apr 15 1999 - 22:27:07 CDT