当前位置:网站首页>Sqlserver2014+: create indexes while creating tables

Sqlserver2014+: create indexes while creating tables

2022-07-07 16:35:00 Gypsy song

USE tempdb
GO
DROP TABLE IF EXISTS t1;
GO
CREATE TABLE t1(
	id INT PRIMARY KEY,
	c1 INT INDEX IX_t1_c1	
)
DECLARE @t TABLE (
	id INT PRIMARY KEY,
	c1 INT INDEX IX_t1_c1	
)
GO

原网站

版权声明
本文为[Gypsy song]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071417219440.html