20 lines
1.9 KiB
MySQL
20 lines
1.9 KiB
MySQL
|
|
delete from HtmlLabelIndex where id = 547983 and ( indexdesc is null or indexdesc = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelIndex(id,indexdesc) select top 1 547983,'<EFBFBD><EFBFBD><EFBFBD>Ӻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>鿴' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 547983 and ( indexdesc is not null and indexdesc <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547983 and languageid=7 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547983 as indexid ,'<EFBFBD><EFBFBD><EFBFBD>Ӻ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>鿴' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547983 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547983 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[߹-<2D><>]%' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547983 as indexid ,'minutes after first viewing' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547983 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[߹-<2D><>]%' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlLabelInfo where indexid = 547983 and languageid=9 and ( labelname is null or labelname = '' )
|
|||
|
|
GO
|
|||
|
|
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 547983 as indexid ,'<EFBFBD><EFBFBD>犺<EFBFBD><EFBFBD>o<EFBFBD><EFBFBD><EFBFBD>鿴' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 547983 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
|||
|
|
GO
|
|||
|
|
delete from HtmlModuleLabel where indexId = 547983 and moduleCode = 'COMMON' and type = 'label'
|
|||
|
|
GO
|
|||
|
|
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','COMMON',547983)
|
|||
|
|
GO
|