22,207
社区成员
发帖
与我相关
我的任务
分享
create table # (中 int, 文 int)
insert # select 1,2
insert # select 2,3
select 中,文 from # where 中=1
-->如果不行,用下面的:
select [中],[文] from # where [中]=1
-->如果再不行,见鬼了
drop table #
create table ta (中 int, 文 int)
insert ta select 1,2
insert ta select 2,3
select * from ta where [中]=1
drop table ta
/*
中 文
----------- -----------
1 2
(所影响的行数为 1 行)
*/
create table # (中 int, 文 int)
insert # select 1,2
insert # select 2,3
select * from # where 中=1
select * from # where [中]=1
drop table #
CREATE TABLE [#A]
(
中文 varchar (30) NULL,
)
select 中文 from #a