Mysql
mysql学习
chenzhh25
Python、Hive、数据分析、爬虫
展开
-
Mysql字符型数字比较问题
在Mysql数值型的数值和字符串类型的数值,界限是模糊的,比如:字符型的 '1' 和数值型的 1 是相等的原创 2020-06-04 15:54:03 · 272 阅读 · 0 评论 -
Presto、Hive、Mysql出现单引号
-- 1、方式一select country_nmfrom dw_pub_country_tdwhere country_nm = 'Lao People''s Democratic Republic'-- 2、方式二select country_nmfrom dw_pub_country_tdwhere country_nm = "Lao People's Democratic...原创 2019-12-27 11:29:09 · 2263 阅读 · 2 评论 -
Mysql实现row_number(partition by)窗口函数
1、实现row_number()select user_nm , login_time , @row_num := @row_num + 1 as rank_numfrom ( select 'zhang' as user_nm, '2019-01-03 12:30:20' as login_time union all select 'zhang' as ...原创 2019-12-27 10:45:50 · 1942 阅读 · 0 评论