MYSQL
文章平均质量分 68
御风之翼_唤星者
这个作者很懒,什么都没留下…
展开
-
DataWorks笔记
1)Function Studioimport 新包,在pom.xml中添加相关包的配置以com.google.code.gson为例:<dependency><groupId>com.google.code.gson</groupId><artifactId>gson</artifactId><version>2.2.4</version></dependency>...原创 2020-07-29 09:31:30 · 814 阅读 · 0 评论 -
Hive相关
--把多商品订单的支付金额拿出来select explode(collect_set(split(split(payment,'":"')[1],'"')[0])) from (select payment from aaa.bbbbbb lateral view explode( split(get_json_object( ...原创 2020-03-09 15:20:14 · 111 阅读 · 0 评论 -
防止SQL注入的若干笔记
利用 mysqli$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'world');$stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)");$code = 'DEU';$language = 'Bavarian原创 2017-09-12 22:42:22 · 269 阅读 · 0 评论 -
关于数据查询优化
http://blog.jobbole.com/80395/http://www.cnblogs.com/marvin/p/HowCanIHandleBigDataBySQLServer.html转载 2017-08-31 22:05:38 · 314 阅读 · 0 评论 -
个人常用sql语句记录
【将查询到的数据插入数据表】INSERT INTO temp_table(vin) (select distinct(vin) as vin from aaa where sale<>0 and substring(pay_time,1,7)='2018-02');【给网页上POI点做准备】select c.id as '充电站id',ci.id as '景点id...原创 2017-01-22 17:23:54 · 463 阅读 · 1 评论 -
MYSQL String类型数据无法比大小的解决方法
原因在于要改成int才行:MYSQL 查询代码如下:select name from a_table where cast(age as UNSIGNED INTEGER)>cast(work_age as UNSIGNED INTEGER) order by id原创 2017-01-13 10:58:58 · 1117 阅读 · 0 评论