摘要:
位运算符 下表列出了位运算符的基本运算,假设整数变量 A 的值为 60 和变量 B 的值为 13: public class Test { public static void main(String[] args) { int a = 60; /* 60 = 0011 1100 */ int b 阅读全文
摘要:
select 0 AS id,mac, file_md5,substring_index(substring_index(a.type_str,',',b.help_topic_id+1),',',-1) as type_val from ( SELECT mac, file_md5, concat 阅读全文
摘要:
MySQL和Oracle都支持join...on...like的操作: SELECT * FROM table1 LEFT JOIN table2 ON table1.xxx LIKE CONCAT('%',table2.yyy,'%') 在hive中要想使用非等值连接,可使用locate代替 -- 阅读全文