sql定义布尔类型变量_Php –布尔变量类型,True,False

本文介绍了编程中的布尔类型,包括在SQL和各种编程语言(如PHP)中的使用。布尔逻辑使用True和False作为值,常用于控制程序执行流程。文章通过示例解释了如何声明和使用True和False变量,以及如何将变量设为Null。
摘要由CSDN通过智能技术生成
sql定义布尔类型变量

sql定义布尔类型变量

[rps-include post=6522]

[rps-include post = 6522]

Programming generally consist of numeric and logic operations. We have seen numeric variables in previous post. Now we will look other part. While developing applications we generally provide algorithm. Algorithms mostly provides execution diagram. We will use logic values to check and change the execution of the application.

编程通常包括数字和逻辑运算。 我们已经在上一篇文章中看到了数字变量。 现在,我们将看另一部分。 在开发应用程序时,我们通常提供算法。 算法主要提供执行图。 我们将使用逻辑值来检查和更改应用程序的执行。

布尔型 (Boolean)

Boolean logic uses true and false as values and makes some calculations with operators. We will see these calculations and operators next chapters.

布尔逻辑使用truefalse作为值,并使用运算符进行一些计算。 我们将在下一章中看到这些计算和运算符。

真正 (True)

true is used to describe the positive and true situation. Positive numbers generally interpreted as true in most situations by the functions or third party libraries. In the example below we will create a boolean variable which is named $door_isopen and holds the door openness situation.

true用于描述正面和真实的情况。 函数或第三方库通常在大多数情况下将正数解释为true 。 在下面的示例中,我们将创建一个名为$door_isopen的布尔变量,该变量保存门的打开情况。

$door_isopen=true;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值