---
title: "仅当使用了列的列表 并且 identity_insert 为 on 时 才能在表 中为标识列指定显式值。 "
author: "pavel"
date: "2012-03-08T14:31:19Z"
tags: []
categories: ["数据库"]
slug: "identity-insert-on"
draft: false
lastmod: "2012-03-08T14:31:06Z"
id: 1446348
url: "https://pavel.iteye.com/blog/1446348"
---

SET IDENTITY\_INSERT products2 ON  
INSERT INTO products2     (id, product)     SELECT * FROM products