解决方法: <select id="selectIf" resultType="student"> SELECT id,name,age,score FROM t_student WHERE 1=1 <if test="arg0 != null and arg0 !=''"> AND name LI ...
分类:
其他好文 时间:
2019-02-10 09:26:58
阅读次数:
254
"HDU 3348" coins Description "Yakexi, this is the best age!" Dong MW works hard and get high pay, he has many 1 Jiao and 5 Jiao banknotes(纸币), some da ...
分类:
其他好文 时间:
2019-02-09 13:22:53
阅读次数:
178
学习期间,将写内容过程较好的内容段备份一下,下边内容段是关于C语言基础:if条件语句使用演示的内容,应该是对各位朋友有所用。 #include <stdio.h> void main () { int age = 21; int height = 73; if (age == 21) printf( ...
分类:
编程语言 时间:
2019-02-08 18:45:05
阅读次数:
136
0. 说明 UDF //user define function //输入单行,输出单行,类似于 format_number(age,'000') UDTF //user define table-gen function //输入单行,输出多行,类似于 explode(array); UDAF / ...
分类:
其他好文 时间:
2019-02-08 10:34:06
阅读次数:
159
逻辑性变量的定义符:bool,在C语言中只有true和false; 定义方式:bool t = true; 逻辑运算符: !:逻辑非 &&:逻辑与 ||:逻辑或 表达区间的错误形式:44&&x=’A’&& c (!age)99; ------->index不属于0-99范围; 优先级: 1 () 2... ...
分类:
编程语言 时间:
2019-02-05 09:18:13
阅读次数:
198
通过实例理解单列索引、多列索引以及最左前缀原则 实例:现在我们想查出满足以下条件的用户id: SELECT `uid` FROM people WHERE lname`='Liu' AND `fname`='Zhiqun' AND `age`=26 因为我们不想扫描整表,故考虑用索引。 单列索引: ... ...
分类:
数据库 时间:
2019-02-04 23:17:27
阅读次数:
220
Invitation Cards 题目链接:http://poj.org/problem?id=1511 Description: In the age of television, not many people attend theater performances. Antique Comed ...
分类:
其他好文 时间:
2019-02-04 19:33:26
阅读次数:
107
UI标签库专题二:JEECG智能开发平台Column(列) 子标签 1.1. Column(列) 子标签 1.1.1. 示例 <t:dgCol title="年龄" field="age" query="true" extend="{data-options:{required:false,grou ...
分类:
其他好文 时间:
2019-02-04 18:15:26
阅读次数:
235
什么是反射反射主要是指程序可以访问、检测和修改它本身状态或行为的一种能力(自省)。python面向对象中的反射就是通过字符串获取对象或者类的属性,进行操作~,主要是对这4个方法的应用:hasattr,getattr,setattr,delattr。反射对象的属性和方法classPerson:def__init__(self,name,age):self.__name=nameself.__age=
分类:
编程语言 时间:
2019-02-03 19:51:05
阅读次数:
167
在属性/方法名前有双下划线的,称为私有属性/方法,私有属性/方法外部不能直接访问, 一般访问类的私有属性,可以通过调用 使用了私有属性的方法 达到访问私有属性, 但python中并没有真正意义的私有,可以通过 _类名__属性/方法 来访问。 例: 有一个Woman类,内有私有属性 __age 和 私 ...
分类:
其他好文 时间:
2019-02-03 14:14:31
阅读次数:
194