函数 1.hive函数分类 标准函数 自定义标准函数称之为 UDF 传递一行数据,返回一个结果 聚合函数 自定义聚合函数称之为 UDAF 传递多行数据,返回一个结果 group by sum count 表生成函数 自定义表生成函数称之为 UDTF 传递一行数据,返回多行数据 explode 2.函 ...
分类:
其他好文 时间:
2020-06-23 20:54:23
阅读次数:
64
1.首先呢我们要根据ID来进行一个查询 var sql = "select * from Product where id=" + id; 2.我们把查询到的放在一个DataTable对象内。(且大于查询结果大于1,小于1的话返回空) DataTable dt = SqlHelper.Cx(sql) ...
分类:
其他好文 时间:
2020-06-23 13:51:34
阅读次数:
92
colorUI 1、icon cuIcon-locationfill 2、字体 xs sm df lg xl xxl 26 30 80 20 24 28 32 36 44 text-left 颜色 text-center text-bold text-price text-cut text-颜色名 ...
分类:
Web程序 时间:
2020-06-22 10:59:41
阅读次数:
145
方法:递归 O(n) O(n) class Solution: def __init__(self): self.maxSum = float("-inf") def maxPathSum(self, root: TreeNode) -> int: def maxGain(node): if not ...
分类:
其他好文 时间:
2020-06-22 02:02:46
阅读次数:
70
this:表示本类的属性 public class PhoneClass { //属性 private String model; private int price; //定义一个构造函数-无参 public PhoneClass(){ System.out.println("无参构造函数"); ...
分类:
编程语言 时间:
2020-06-21 23:35:26
阅读次数:
65
思路:金额的小数点左右绝对要分开的.(再用css去控制) //模拟data数据 data( return { price:'88888.00' } ) //ps:v-html绑定数据 //1.分割价钱 => ["88888", "00"] let splitPrice = this.price.sp ...
分类:
Web程序 时间:
2020-06-20 10:39:10
阅读次数:
211
对于私有属性常常会添加set以及get方法,此时可以使用Python内置的@property装饰器,将set以及get方法简化为如同属性一样调用 示例: 普通情况: class book: _score = 0 def __init__(self): self._score = 100 def ge ...
分类:
编程语言 时间:
2020-06-19 16:30:50
阅读次数:
74
1、使用WHERE子句 在SELECT语句中,数据根据WHERE子句中指定的搜索条件进行过滤。WHERE子句在表名( FROM子句)之后给出,如下所示: SELECT prod_name,prod_price FROM products WHERE prod_price=2.50; 这条语句从pro ...
分类:
数据库 时间:
2020-06-19 16:07:27
阅读次数:
73
创建联结 mysql> SELECT vend_name,prod_name,prod_price FROM vendors,products WHERE vendors.vend_id=products.vend_id ORDER BY vend_name,prod_name; + + + + | ...
分类:
数据库 时间:
2020-06-19 12:24:36
阅读次数:
45
bootstraptable通过数据属性或javascript以表格格式显示数据 通过数据属性(把数据写死) <table data-toggle="table"> <thead> <tr> <th>Item ID</th> <th>Item Name</th> <th>Item Price</th ...
分类:
编程语言 时间:
2020-06-17 01:13:40
阅读次数:
58