HQL中的substring
生活随笔
收集整理的这篇文章主要介绍了
HQL中的substring
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
数据:
jack,2017-01-01,10 tony,2017-01-02,15 jack,2017-02-03,23 tony,2017-01-04,29 jack,2017-01-05,46 jack,2017-04-06,42 tony,2017-01-07,50 jack,2017-01-08,55 mart,2017-04-08,62 mart,2017-04-09,68 neil,2017-05-10,12 mart,2017-04-11,75 neil,2017-06-12,80 mart,2017-04-13,94建表导入数据:
create table business( name string, orderdate string, cost int ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','; load data local inpath "/root/business" into table business;查询:
load data local inpath "/root/business" into table business;结果展示:
所以请别根据java天下第一去思考:
在HQL中的substring:
总结
以上是生活随笔为你收集整理的HQL中的substring的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: MySQL主从复制能完美解决数据库单点问
- 下一篇: hbase安装好60010无法访问