上一页 1 ··· 3 4 5 6 7
摘要: 阅读全文
posted @ 2021-10-25 16:52 ~且听风吟~ 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-25 16:51 ~且听风吟~ 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 语法 REPLACE ( ''string_replace1'' , ''string_replace2'' , ''string_replace3'' ) 参数 ''string_replace1'' 待搜索的字符串表达式。string_replace1 可以是字符数据或二进制数据。 ''stri 阅读全文
posted @ 2021-10-25 16:49 ~且听风吟~ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: --定义变量 DECLARE @username varchar(20),@UserId varchar(100) --定义游标 (游标抓取表格信息) DECLARE cursor_name CURSOR FOR SELECT TOP 10 UserId,UserName FROM UserInfo 阅读全文
posted @ 2021-10-25 16:49 ~且听风吟~ 阅读(82) 评论(0) 推荐(0) 编辑
摘要: @@error表示上一条SQL语句执行结果是否有错,如果@@error的值不等于0,即是出错的情况就要采取措施,比如回滚。 阅读全文
posted @ 2021-10-25 16:47 ~且听风吟~ 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1,查看那个表死锁 select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks where resource_type = 'OBJE 阅读全文
posted @ 2021-10-25 16:46 ~且听风吟~ 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1.增加列: 1.alter table tableName add columnName varchar(30) 2.ALTER TABLE dbo.doc_exa ADD column_b VARCHAR(20) NULL, column_c INT NULL ; 2.1. 修改列类型: 1.a 阅读全文
posted @ 2021-10-25 16:45 ~且听风吟~ 阅读(688) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7