Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Convert Number To BIT in ORACLE.


Like Sql Server CONVERT(BIT,ISNULL(d.display_enable,0)) display_enable.

Please help Me.
Thanks
Posted

1 solution

Hi,

Oracle does not have a bit datatype.

The available data type for Oracle (11g) are listed in the documentation[^].

The most common approach to is to use a Integer value to represent bit values.
(i.e. store 0 for false, 1 for true)

... hope it helps.
 
Share this answer
 
Comments
Nilsomudra 8-Sep-15 7:48am    
Now how can i find common result sql server 2008 and oracle. Fill Gridview ItemTemplate bind ...<asp:CheckBox ID="enable_item" runat="server"
Checked='<%# Bind("display_enable") %>' />
hypermellow 8-Sep-15 7:52am    
Hi, can you post this a separate question please?
That way you can add the relevant detail and code.

Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900