您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
sqlserver2008 QUOTED_IDENTIFIER 值為ON的理解
发布时间:2022-01-03 22:35:02编辑:雪饮阅读()
/*
create table distinct(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
--distinct是关键字创建失败
/*
create table `distinct`(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
--distinct反斜杠也不行
/*
create table 'distinct'(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
--distinct单引号无效
/*
create table "distinct"(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
数据库中已存在名为 'distinct' 的对象。
*/
/*
SET QUOTED_IDENTIFIER ON
create table "distinct"(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
数据库中已存在名为 'distinct' 的对象。
*/
/*
SET QUOTED_IDENTIFIER ON
create table 'distinct'(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
语法错误
*/
/*语法错误
SET QUOTED_IDENTIFIER ON
create table `distinct`(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
/*语法错误
SET QUOTED_IDENTIFIER ON
create table distinct(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
/*语法错误
SET QUOTED_IDENTIFIER OFF
create table distinct(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
/*语法错误
SET QUOTED_IDENTIFIER OFF
create table 'distinct'(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
/*
SET QUOTED_IDENTIFIER OFF
create table `distinct`(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
语法错误
*/
/*语法错误
SET QUOTED_IDENTIFIER OFF
create table "distinct"(
id int not null constraint pk_1 primary key,
value varchar(255),
flag int
)
*/
/*
总结:SET QUOTED_IDENTIFIER ON结合表名用双引号囊括时可用,但关键字时候仍旧有冲突
应是对字段的作用,对表应该无效
*/
关键字词:sqlserver2008,sqlserver,2008,sqlserv,QUOTED_IDENTIFIER,ON
相关文章
- sqlserver2008 存儲過程定義參數,接收參數
- sqlserver2008 select在存儲過程中使用select查詢
- sqlserver2008 peocedure_调用 存儲過程的調用
- sqlserver2008-go的理解
- workerman-crontab定时任务 - 接口-销毁定时器
- workerman-crontab定时任务
- workerman-redis-sUnionStore
- workerman-redis-sUnion
- workerman常用组件-MySQL组件-workerman之使用Workerm
- workerman常用组件-MySQL组件-workerman之使用Workerm