我有一个列表电子邮件,我想知道如何用分号分隔每个(;) [英] I Have A List Emails, I Want To Know How Can I Separate Each With A Semicolons (;)

查看:128
本文介绍了我有一个列表电子邮件,我想知道如何用分号分隔每个(;)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户的电子邮件ID列表,我需要向他们发送所有提醒。所以我需要推广它,并且通过SSIS必须向他们发送提醒。我需要知道: -

1)我如何选择分离的电子邮件ID(;)

2)如何将它们添加到字符串变量中,用;分隔; br />
3)如何配置脚本任务(我想这就是我将要使用的!!!)

I have a list of Email ID’s of users and I need to send all of them a reminder. So I need to populae it and via SSIS have to send them a reminder. I need to know :-
1)How can I pick email ID’s with separation (;)
2) How to add them to a string variable, separated by ;
3)How to configure the script task(I guess that’s what I will have to use !!!)

推荐答案

简单的方法就是这个(1& 2)。



如果你能这样做:

Simple way is this (for 1 & 2).

If you can do this:
select EmailId from Emails



然后你也可以这样做


Then you can also do this

declare @joined varchar(max)
set @joined = ''
select @joined = @joined + EmailId+ ';' from Emails
select @joined


这篇关于我有一个列表电子邮件,我想知道如何用分号分隔每个(;)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆