用replace替换掉'/n'为''
replace用法可用查看帮助
replace用法可用查看帮助
解决方案 »
- 针对某一个TABLE如何设置对他不允许新增记录?
- 求SQL语句,进来的帮忙顶一下,谢谢。
- 小问题:求Function 功能:输入:'a,b,c,d,e' ,输出一个表,表内有5条纪录,分别是a,b,c,d,e
- 关于在ACCESS中使用SQL的语句请教
- 关于链接服务器的奇怪问题,高手请进
- 关于DataGrid Control 控件在对话话中显示问题
- 我的SQL服务不能启动了!急......
- smalldatetime的字段应该在存储过程里定义为什么类型
- 关于存储过程和触发器中使用链接服务器的问题
- microsoft sql server 2003下的数据库整体迁移到另外一台server2003或者是server2008
- MS SS能不能在SELECT里产生行号,不用INTO,一句解决
- 每一种数据类型都对应一个typeid,谁能帮我把它们都列出来?
Declare @Contact varchar(10)
Declare @ContractTitle varchar(100)
Declare @EmailTitle varchar(1000)
Declare My_cursor1 CURSOR FOR
Select Contact,Email,ContractTitle
from ContractInfo
Where getdate() between Reminddate and Autoneeddate
Open My_cursor1
While @@fetch_status=0
Begin
Fetch next from My_cursor1 into @Contact,
@Email,@ContractTitle
Select @EmailTitle=@Contact + ':
您签定的合同(' +
@ContractTitle + ')快要到期了,请续约
' from ContractInfo
Execute master.dbo.xp_sendmail
@recipients =@Email,
@subject =@ContractTitle, @message =
'请输入你的内容'
End
Close My_cursor1
Deallocate MY_Cursor1两个问题 '不能用‘ , @email 不能用 @ email