I would like to know how I would go about of creating my table or choosing an insert that make sure that I do not get duplicate values.

我想知道如何创建我的表或选择一个插件,以确保我没有得到重复的值。

create table test.dbo.test
product, 
time,
primary key(product, time)
go

When using Clustered ColumnStore I can not have any unique constraints to know that the data that has been inserted is unique. Is there another way to check this?

使用Clustered ColumnStore时,我不能有任何唯一约束来知道已插入的数据是唯一的。还有另一种检查方法吗?

1 个解决方案

#1


4

Here is a work-around that uses materialized views.

这是一个使用物化视图的变通方法。

http://sqlwithmanoj.com/2014/07/24/maintaining-uniqueness-with-clustered-columnstore-index-sql-server-2014/

http://sqlwithmanoj.com/2014/07/24/maintaining-uniqueness-with-clustered-columnstore-index-sql-server-2014/

更多相关文章

  1. 连接WCF报EntityFramework.SqlServer 错误的解决方法
  2. SQL SERVER日志文件已满处理方法
  3. SQL SERVER 日志已满的处理方法
  4. 抱SQL SERVER大腿之我爱用视图(对大数据量的管理)
  5. 创建视图时ORA-01031
  6. 一种在t-SQL中选择两个日期之间的日期的方法
  7. 使用PDO创建长插入SQL查询的最佳方法
  8. MySQL This function has none of DETERMINISTIC, NO SQL...错误
  9. mysql随机取出若干条记录的实用方法

随机推荐

  1. FreeMarker 概述
  2. 有了Python,我能叫出所有猫的名字
  3. Android(安卓)Studio查看Android(安卓)5.
  4. 排序算法 #6 快速排序
  5. 为什么要用Dubbo?
  6. Python字符串必备速查表.pdf
  7. 排序算法 #3 插入排序
  8. 给Python学习者的文件读写指南(含基础与进
  9. 每日前端夜话(0x02):ECMAScript 2016,2017
  10. 排序算法 #7 双路快排