代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
MSSQL
】
用sql语句如何给字段添加和去掉identity属性
作者:
Dezai.CN
/ 发布于
2011/11/21
/
698
<div><span style="color: #008080">--</span><span style="color: #008080">在SQL SERVER的Enterprise Manage中,先建一个表</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />--</span><span style="color: #008080">然后右击,选择Design Table,添加了Identity属性后,用Save Change Script按钮</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />--</span><span style="color: #008080">看看系统是怎么做的,去掉Identity同理. </span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />--</span><span style="color: #008080">假如建了表a,id有identity属性</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />--</span><span style="color: #008080">----------------------------------------------</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />--</span><span style="color: #008080">1.创建表</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000"> </span><span style="color: #808080">exists</span><span style="color: #000000"> (</span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">from</span><span style="color: #000000"> dbo.sysobjects </span><span style="color: #0000ff">where</span><span style="color: #000000"> id </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="color: #ff00ff">object_id</span><span style="color: #000000">(N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">[dbo].[a]</span><span style="color: #ff0000">'</span><span style="color: #000000">) </span><span style="color: #808080">and</span><span style="color: #000000"> </span><span style="color: #ff00ff">OBJECTPROPERTY</span><span style="color: #000000">(id, N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">IsUserTable</span><span style="color: #ff0000">'</span><span style="color: #000000">) </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="color: #800000; font-weight: bold">1</span><span style="color: #000000">) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">drop</span><span style="color: #000000"> </span><span style="color: #0000ff">table</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">dbo</span><span style="color: #ff0000">]</span><span style="color: #000000">.</span><span style="color: #ff0000">[</span><span style="color: #ff0000">a</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">CREATE</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">dbo</span><span style="color: #ff0000">]</span><span style="color: #000000">.</span><span style="color: #ff0000">[</span><span style="color: #ff0000">a</span><span style="color: #ff0000">]</span><span style="color: #000000"> ( <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">id</span><span style="color: #ff0000">]</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">int</span><span style="color: #ff0000">]</span><span style="color: #000000"> </span><span style="color: #808080">NOT</span><span style="color: #000000"> </span><span style="color: #0000ff">NULL</span><span style="color: #000000"> , <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">title</span><span style="color: #ff0000">]</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">char</span><span style="color: #ff0000">]</span><span style="color: #000000"> (</span><span style="color: #800000; font-weight: bold">10</span><span style="color: #000000">) COLLATE Chinese_PRC_CI_AS </span><span style="color: #0000ff">NULL</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" />) </span><span style="color: #0000ff">ON</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">PRIMARY</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">2.加identity属性</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">BEGIN</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> QUOTED_IDENTIFIER </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> </span><span style="color: #0000ff">ISOLATION</span><span style="color: #000000"> </span><span style="color: #0000ff">LEVEL</span><span style="color: #000000"> </span><span style="color: #0000ff">SERIALIZABLE</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ARITHABORT </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> NUMERIC_ROUNDABORT </span><span style="color: #0000ff">OFF</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> CONCAT_NULL_YIELDS_NULL </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_NULLS </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_PADDING </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_WARNINGS </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">COMMIT</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">BEGIN</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">CREATE</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.Tmp_a <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ( <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> id </span><span style="color: #000000; font-weight: bold">int</span><span style="color: #000000"> </span><span style="color: #808080">NOT</span><span style="color: #000000"> </span><span style="color: #0000ff">NULL</span><span style="color: #000000"> </span><span style="color: #ff00ff">IDENTITY</span><span style="color: #000000"> (</span><span style="color: #800000; font-weight: bold">1</span><span style="color: #000000">, </span><span style="color: #800000; font-weight: bold">1</span><span style="color: #000000">), <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> title </span><span style="color: #000000; font-weight: bold">char</span><span style="color: #000000">(</span><span style="color: #800000; font-weight: bold">10</span><span style="color: #000000">) </span><span style="color: #0000ff">NULL</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ) </span><span style="color: #0000ff">ON</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">PRIMARY</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> </span><span style="color: #0000ff">IDENTITY_INSERT</span><span style="color: #000000"> dbo.Tmp_a </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">IF</span><span style="color: #000000"> </span><span style="color: #808080">EXISTS</span><span style="color: #000000">(</span><span style="color: #0000ff">SELECT</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> dbo.a) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> </span><span style="color: #0000ff">EXEC</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">INSERT INTO dbo.Tmp_a (id, title) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> SELECT id, title FROM dbo.a TABLOCKX</span><span style="color: #ff0000">'</span><span style="color: #000000">) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> </span><span style="color: #0000ff">IDENTITY_INSERT</span><span style="color: #000000"> dbo.Tmp_a </span><span style="color: #0000ff">OFF</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">DROP</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.a <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">EXECUTE</span><span style="color: #000000"> sp_rename N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">dbo.Tmp_a</span><span style="color: #ff0000">'</span><span style="color: #000000">, N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">a</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">OBJECT</span><span style="color: #ff0000">'</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">ALTER</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.a </span><span style="color: #0000ff">ADD</span><span style="color: #000000"> </span><span style="color: #0000ff">CONSTRAINT</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> PK_a </span><span style="color: #0000ff">PRIMARY</span><span style="color: #000000"> </span><span style="color: #0000ff">KEY</span><span style="color: #000000"> </span><span style="color: #0000ff">CLUSTERED</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ( <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> id <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ) </span><span style="color: #0000ff">ON</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">PRIMARY</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">COMMIT</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #008080">--</span><span style="color: #008080">3.去掉identity属性</span><span style="color: #008080"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">BEGIN</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> QUOTED_IDENTIFIER </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> </span><span style="color: #0000ff">ISOLATION</span><span style="color: #000000"> </span><span style="color: #0000ff">LEVEL</span><span style="color: #000000"> </span><span style="color: #0000ff">SERIALIZABLE</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ARITHABORT </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> NUMERIC_ROUNDABORT </span><span style="color: #0000ff">OFF</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> CONCAT_NULL_YIELDS_NULL </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_NULLS </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_PADDING </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">SET</span><span style="color: #000000"> ANSI_WARNINGS </span><span style="color: #0000ff">ON</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">COMMIT</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">BEGIN</span><span style="color: #000000"> </span><span style="color: #0000ff">TRANSACTION</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">CREATE</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.Tmp_a <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ( <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> id </span><span style="color: #000000; font-weight: bold">int</span><span style="color: #000000"> </span><span style="color: #808080">NOT</span><span style="color: #000000"> </span><span style="color: #0000ff">NULL</span><span style="color: #000000">, <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> title </span><span style="color: #000000; font-weight: bold">char</span><span style="color: #000000">(</span><span style="color: #800000; font-weight: bold">10</span><span style="color: #000000">) </span><span style="color: #0000ff">NULL</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ) </span><span style="color: #0000ff">ON</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">PRIMARY</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">IF</span><span style="color: #000000"> </span><span style="color: #808080">EXISTS</span><span style="color: #000000">(</span><span style="color: #0000ff">SELECT</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">FROM</span><span style="color: #000000"> dbo.a) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> </span><span style="color: #0000ff">EXEC</span><span style="color: #000000">(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">INSERT INTO dbo.Tmp_a (id, title) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> SELECT id, title FROM dbo.a TABLOCKX</span><span style="color: #ff0000">'</span><span style="color: #000000">) <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">DROP</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.a <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">EXECUTE</span><span style="color: #000000"> sp_rename N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">dbo.Tmp_a</span><span style="color: #ff0000">'</span><span style="color: #000000">, N</span><span style="color: #ff0000">'</span><span style="color: #ff0000">a</span><span style="color: #ff0000">'</span><span style="color: #000000">, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">OBJECT</span><span style="color: #ff0000">'</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">ALTER</span><span style="color: #000000"> </span><span style="color: #0000ff">TABLE</span><span style="color: #000000"> dbo.a </span><span style="color: #0000ff">ADD</span><span style="color: #000000"> </span><span style="color: #0000ff">CONSTRAINT</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> PK_a </span><span style="color: #0000ff">PRIMARY</span><span style="color: #000000"> </span><span style="color: #0000ff">KEY</span><span style="color: #000000"> </span><span style="color: #0000ff">CLUSTERED</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ( <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> id <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> ) </span><span style="color: #0000ff">ON</span><span style="color: #000000"> </span><span style="color: #ff0000">[</span><span style="color: #ff0000">PRIMARY</span><span style="color: #ff0000">]</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">GO</span><span style="color: #000000"> <img align="top" src="http://singlepine.cnblogs.com/Images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">COMMIT</span></div>
试试其它关键字
identity
同语言下
.
SQL查询 多列合并成一行用逗号隔开
.
查看存储过程修改时间,最近执行时间
.
设置手动批量删除数据库相关进程
.
获取某个表中特定字段的所有字符串形式
.
SQL 如何去除重复的字符串
.
怎么去掉一个字段中的重复数据
.
String 去除空格 回车 换行 水平制表符
.
SQL查询和替换含有回车,空格,TAB
.
SQL SERVER 查询每日新增用户数量、次留数量
.
判断两个字符串是否存在相同的内容
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3