随笔分类 -  SQL Server

摘要:update t1 set t1.BPTProductId=t2.BPTIdfrom Bas_ProductImageUrl t1join Bas_Products t2on t1.BPTBarCode=t2.BPTBarCode 阅读全文
posted @ 2020-04-26 17:43 Mr靳先生 阅读(3237) 评论(0) 推荐(0)
摘要:select SUBSTRING( col, CHARINDEX('>', col)+1, LEN(col))from table 阅读全文
posted @ 2020-04-26 17:38 Mr靳先生 阅读(936) 评论(0) 推荐(0)
摘要:1.查询单列重复(table:表名,name 字段名): select * from table where name in (select name from table group by name having count(name) > 1) 2.查询多列重复(table:表名,name 字段 阅读全文
posted @ 2019-03-30 13:40 Mr靳先生 阅读(6024) 评论(0) 推荐(0)