四则运算符号 【1】+加法用法 mysql> SELECT NAME,JOB,SALARY,SALARY+500 MONTHS_AWARD FROM employee_info; #给每位员工每月奖励500元+ + + + +| NAME | JOB | SALARY | MONTHS_AWARD ...
分类:
其他好文 时间:
2018-10-24 22:03:24
阅读次数:
160
salary=int(input("pleaseinputyoursalary:"))product_list=[[‘iphone‘,5299],[‘coffee‘,30],[‘bike‘,299],[‘vivox9‘,2499],[‘cake‘,40],[‘book‘,99]]pr
分类:
编程语言 时间:
2018-10-24 16:51:38
阅读次数:
167
product_list=[(‘iPhone‘,5800),(‘Macpro‘,9500),(‘Bike‘,800),(‘Watch‘,10600),(‘Coffee‘,31),(‘AlexPython‘,120)]shopplist_list=[]salary=input("Inputyou
分类:
其他好文 时间:
2018-10-24 15:56:26
阅读次数:
117
https://leetcode.com/articles/average-salary-departments-vs-company/ select date_formate(pay_date,'%Y-%m') pay_month, e.department_id, (case when avg( ...
分类:
其他好文 时间:
2018-10-23 14:48:35
阅读次数:
120
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice ver ...
分类:
其他好文 时间:
2018-10-17 16:44:09
阅读次数:
108
1、SpringBoot启动默认加载的Filter characterEncodingFilter hiddenHttpMethodFilter httpPutFormContentFilter requestContextFilter 2、Filter优先级(Ordered.HIGHEST_PRE ...
分类:
编程语言 时间:
2018-10-17 14:31:02
阅读次数:
3527
【2】Add Two Numbers 【19】Remove Nth Node From End of List 【21】Merge Two Sorted Lists 【23】Merge k Sorted Lists 【24】Swap Nodes in Pairs 【25】Reverse Nodes ...
分类:
其他好文 时间:
2018-10-16 13:41:14
阅读次数:
240
题意:找出无需数列中位数(偶数为两个中位数平均数向下取整) 思路:用nth_element(a + first,a + k,a+ end + 1)找出中位数,复杂度一般为O(n)。这个STL能将 [ a + first,a+ end + 1)数组中第k小的数字放在a + k这个位置上,并且k前都比他 ...
分类:
编程语言 时间:
2018-10-15 00:00:19
阅读次数:
216
#case ...when语句(根据字段不同值显示不同结果) ##1)case ...when语句的使用方法一: ID username salary 1 aaa 800 2 bbb 1800 3 ccc 5000 4 aaa 10000 username 部门 aaa 计算机部门 bbb 市场部门 ...
分类:
数据库 时间:
2018-10-13 02:32:11
阅读次数:
211
TO_CHAR 是把日期或数字转换为字符串,不能指定字符串长度。使用TO_CHAR函数处理日期:TO_CHAR(number, '格式') 例如:TO_CHAR(salary,’$99,999.99’)使用TO_CHAR函数处理日期:TO_CHAR(date,’格式’); TO_CHAR(newda ...
分类:
数据库 时间:
2018-10-11 13:38:34
阅读次数:
165