oracle boolean
时间: 2023-10-17 08:34:56 浏览: 87
Oracle中没有直接的boolean类型。有两种常见的解决方案来模拟boolean类型:Number(1)和Char(1)。使用Number(1)的解决方案更符合C语言的习惯,而使用Char(1)的解决方案可以节省存储空间并提高查询效率。在PL/SQL中,有boolean类型,只能取true和false两个值,但在数据库中没有boolean类型。在存储过程中,可以声明boolean型的变量,并使用case-when语句来处理boolean类型的变量、常量以及产生boolean值的表达式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [oracle的boolean问题](https://blog.csdn.net/zk052300/article/details/103568855)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [布尔类型(boolean)在oracle存储过程中支持情况](https://blog.csdn.net/qq_42570601/article/details/109224331)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文