欢迎莅临 SUN WU GANG 的园子!!!

世上无难事,只畏有心人。有心之人,即立志之坚午也,志坚则不畏事之不成。

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

01 2024 档案

摘要:第一步:将字段为空的信息更改为默认值 第二步:更改字段为非空 第三步:设置默认值约束 update TableImageQuality set ImageScore= 0 where ImageScore is null ALTER TABLE TableImageQuality ALTER COL 阅读全文
posted @ 2024-01-29 15:14 sunwugang 阅读(22) 评论(0) 推荐(0)

摘要:一.使用临时表方式处理 EXEC [dbo].[ProcTotalScoreCountStatistics] '报告质量','2021-08-08 10:32:00','2024-12-30 10:32:00','999002002' 查询存储过程数据步骤 --1.创建临时表 create tabl 阅读全文
posted @ 2024-01-17 17:52 sunwugang 阅读(24) 评论(0) 推荐(0)

摘要:--通过函数处理除法,获取百分比 if object_id('GetPassRate','fn') is not null drop function GetPassRate go create function [dbo].[GetPassRate]( @num1 int, @num2 int) 阅读全文
posted @ 2024-01-08 14:03 sunwugang 阅读(45) 评论(0) 推荐(0)

摘要:实现查询列不分组 select t.OrganizationCode,(t.OrganizationName) from DictOrganization t select t.OrganizationCode,max(t.OrganizationName)OrganizationName from 阅读全文
posted @ 2024-01-05 15:53 sunwugang 阅读(17) 评论(0) 推荐(0)