摘要: with as语法–针对一个别名with tmp as (select * from tb_name) –针对多个别名with tmp as (select * from tb_name), tmp2 as (select * from tb_name2), tmp3 as (select * fr 阅读全文
posted @ 2016-12-24 17:17 美好的明天 阅读(597) 评论(0) 推荐(0)
摘要: 如何把用逗号等字符隔开的字符串转换成列表,下面依逗号分隔符为例: 比如有一个字符串,其值为:香港,张家港,北京,上海用SQL把这个字符串转换成列表的方法是: 1、方法一 输出结果是: 应用举例:如果table1表的city字段的值为:北京;table2表的city字段的值为:香港,张家港,北京,上海 阅读全文
posted @ 2016-12-24 16:45 美好的明天 阅读(17858) 评论(0) 推荐(0)