06 2020 档案

摘要:update gas_customer_baseset govid=b.govidfrom gas_customer_base a, (select id,govid,customerbaseid from gas_customer )bwhere a.id=b.customerbaseid 阅读全文
posted @ 2020-06-19 17:07 枫岫 阅读(769) 评论(0) 推荐(0)
摘要:DATEADD(yy,1,begindate) begindate字段 如果想要加一年 1 想要减一年 -1 update gas_task set begindate= DATEADD(yy,1,begindate) where govid =380 and task_type=1 and fin 阅读全文
posted @ 2020-06-15 09:22 枫岫 阅读(2024) 评论(0) 推荐(1)
摘要:use ceshi01 --库名 SELECT表名 = Case When A.colorder=1 Then D.name Else '' End,表说明 = Case When A.colorder=1 Then isnull(F.value,'') Else '' End,字段序号 = A.c 阅读全文
posted @ 2020-06-09 11:06 枫岫 阅读(959) 评论(0) 推荐(0)