sqlserver门户设置

本文详细介绍了使用SQL Server进行门户模板表的插入操作,通过设置身份插入,定义了一个包含特定HTML结构的大型文本字符串,用于创建具有不同区域划分的门户模板。

------ insert by wandz 20180918 门户模板表 start ------
set identity_insert oa_portal_template on;
begin
declare @reallybigtextstring varchar(4000);
set @reallybigtextstring = '<table style="TABLE-LAYOUT: fixed" id="portalMain" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tbody>
<tr>
<td class="portal-column-td" zone="A" colspan="2" width="100%">
<div class="dm"></div>
</td>
</tr>
<tr>
<td class="portal-column-td" zone="B" width="50%">
<div class="dm"></div>
</td>
<td class="portal-column-td" zone="C" width="50%">
<div class="dm"></div>
</td>
</tr>
</tbody>
</table>';
insert into oa_portal_template (template_id,name, content, image_, sys_flag, description, sort_no, create_user_id, create_date, create_org_id, del_flag, domain_id, cols_)
values ((select case when max(template_id) is null then 1 else max(template_id)+1 end from oa_portal_template ),'督查督办_1列_2列', @reallybigtextstring, null, 1, null, 1, 0, convert(datetime,getdate(),120), 0, '0', 0, 9);
end;
go
------ insert by wandz 20180918 门户模板表 end ------

转载于:https://www.cnblogs.com/wandezhi/p/10104335.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值