SQL Server数据库中的列创建顺序

时间:2012-08-21 18:14:02

标签: sql-server multiple-columns

如果我在SQL Server数据库中的列B之前创建列A,是否重要?两者之间没有其他行为。

1 个答案:

答案 0 :(得分:0)

见:

您的表格结构:

create table test (id int, name varchar(100));

您的客户表:

create table test (name varchar(100), id int);

如果您使用:

insert into test values (10, 'Roger')

未指定表中字段的顺序将导致客户转换错误。