码迷,mamicode.com
首页 > 数据库 > 详细

公司用到的便利SQL

时间:2020-04-28 10:04:07      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:text   back   opera   sre   com   empty   bsp   nstat   ade   

--查询流程的相关信息   

select  fnr.FNRID,fn.FNID,fnr.MainState,fn.FNName,fn.FNStateName from TFlowNodeRoperty fnr
  left join TFlowNodes fn on fnr.FNID = fn.FNID
    where fnr.FBID=11

 

--更新操作日志

update TOperationLog set ip=‘10.16.4.154‘,UserName=‘系统管理员‘,UserID=1 where id in (  select top 80 id from TOperationLog where ip=‘10.16.4.165‘ order by id desc)

 

--TGridColumn表更新

--select * from TGridColumn where GridID=‘GridOrderItem-FNR299‘
declare @GridID nvarchar(50) --GridID

set @GridID=‘GridOrderItem-FNR310‘

update TGridColumn set HeaderText=‘产品类型‘,ColumnNumber=20    where GridID=@GridID and DataField=‘Pro_title‘
update TGridColumn set HeaderText=‘产品型号‘,ColumnNumber=30    where GridID=@GridID and DataField=‘Pro_model‘
update TGridColumn set HeaderText=‘产品规格‘,ColumnNumber=40    where GridID=@GridID and DataField=‘Pro_specs‘
update TGridColumn set HeaderText=‘料号‘,ColumnNumber=50    where GridID=@GridID and DataField=‘Pro_code‘
update TGridColumn set HeaderText=‘单位‘,ColumnNumber=60    where GridID=@GridID and DataField=‘Pro_unit‘

update TGridColumn set HeaderText=‘台套数量‘,ColumnNumber=70     where GridID=@GridID and DataField=‘Pro_number‘
update TGridColumn set HeaderText=‘组数‘ ,ColumnNumber=80 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField=‘Group_number‘

update TGridColumn set HeaderText=‘方案单元数‘ ,ColumnNumber=90 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField=‘Unit_number‘

update TGridColumn set HeaderText=‘方案总单元数‘ ,ColumnNumber=100 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField=‘SumUnit_number‘

update TGridColumn set HeaderText=‘综合台数‘ ,ColumnNumber=110 ,IsOpen=1,ISEdit=1   where GridID=@GridID and DataField=‘Syn_number‘

update TGridColumn set HeaderText=‘甲供物资‘ ,ColumnNumber=120 ,IsOpen=1,ISEdit=1,IsRequired=1   where GridID=@GridID and DataField=‘PartyAMaterials‘
update TGridColumn set HeaderText=‘空柜‘ ,ColumnNumber=130 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField=‘EmptyBox‘
update TGridColumn set HeaderText=‘备用投微机‘ ,ColumnNumber=140 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField=‘BackUpMicroComputer‘
update TGridColumn set HeaderText=‘DTU‘ ,ColumnNumber=150 ,IsOpen=1,ISEdit=1 ,IsRequired=1  where GridID=@GridID and DataField=‘DTU‘
update TGridColumn set HeaderText=‘备注‘ ,ColumnNumber=160   where GridID=@GridID and DataField=‘Pro_remark‘

公司用到的便利SQL

标签:text   back   opera   sre   com   empty   bsp   nstat   ade   

原文地址:https://www.cnblogs.com/jiangyunfeng/p/12791752.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!