码迷,mamicode.com
首页 >  
搜索关键字:if fi 判断语句    ( 3996个结果
[Bash Scripting LOOP]for, while. until
#!/bin/bash for item in * do if [ -f $item ] then echo $item fi done for do done if then (elif...then...) (else) fi ...
分类:其他好文   时间:2020-05-25 00:19:28    阅读次数:49
mysql的几种日志记录
重做日志(redo log) 作用: 确保事务的持久性。 防止在发生故障的时间点,尚有脏页未写入磁盘,在重启mysql服务的时候,根据redo log进行重做,从而达到事务的持久性这一特性。 内容: 物理格式的日志,记录的是物理数据页面的修改的信息,其redo log是顺序写入redo log fi ...
分类:数据库   时间:2020-05-24 21:13:20    阅读次数:81
Laravel 常用protected
1、$table属性 表名,对应数据库中的表名 2、guarded)属性 guarded表示在create()方法中不能被赋值的字段 3、$hidden属性 $hidden属性可以隐藏字段,使其不出现在数组或者json格式中。 4、$fillable 和$guarded相反设为批量添加的白名单,fi ...
分类:其他好文   时间:2020-05-24 16:25:39    阅读次数:94
python条件判断
if 判断语句 if 条件: print(满足条件展示信息) if else判断 if 条件: print(满足条件展示信息) else: print(不满足条件时展示信息) print(程序结束) if elif else 判断 (连续判断) if 条件1: print() elif 条件2: p ...
分类:编程语言   时间:2020-05-24 09:50:43    阅读次数:91
主席树板子
//贴个主席树板子#include<bits/stdc++.h> using namespace std; #define pb push_back #define sc(x) scanf("%lld",&x); #define int long long #define fi first #def ...
分类:其他好文   时间:2020-05-24 00:11:36    阅读次数:47
Linux(四) 使用结构化命令
if-then if command then commands fi bash shell中的if语句运行在if行定义的命令. 如果命令突出状态时0, 将执行then后面的命令. 如果命令的退出状态时0以外的其他值,那么then后面的命令将不会执行.#!/bin/bash # testing th ...
分类:系统相关   时间:2020-05-22 17:27:54    阅读次数:55
SpringMVC拦截器使用流程和源码分析
1、SpringMVC拦截器的使用流程 1)、在spring-servlet.xml中配置拦截器信息。 <!-- 调试拦截器--> <mvc:interceptors> <!-- 配置某个拦截器,默认拦截所有请求 --> <!-- <bean class="com.lxy.controller.Fi ...
分类:编程语言   时间:2020-05-22 13:07:20    阅读次数:63
[Linux Shell学习系列六]Shell的条件执行——3case语句
D14 case语句是多级的if...then...else...fi语句很好的替代方式。它可以让一个条件与多个模式相比较,而且case语句的读写比较方便。 语法: case EXPRESSION in PATTERN1 ) CONSEQUENT-COMMANDS ;; #必须使用 PATTERN2 ...
分类:系统相关   时间:2020-05-22 12:48:23    阅读次数:61
<3>Python开发——条件判断
条件判断 if语句 if else money = 123 if money > 123: print("OK") else: print("No") if 嵌套 gender = input("??") if gender == "男": age = input("多大") if int(age) ...
分类:编程语言   时间:2020-05-22 11:22:52    阅读次数:71
在读未提交的隔离级别,使用update set更新字段时配合if语句的问题
在读未提交的隔离级别,使用update set更新字段时配合if语句的问题 update user_amount set frozen = frozen - if(5000 > frozen, frozen, 5000) , balance = balance + if( 5000 > frozen ...
分类:其他好文   时间:2020-05-22 10:04:49    阅读次数:77
3996条   上一页 1 ... 19 20 21 22 23 ... 400 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!