34,588
社区成员
发帖
与我相关
我的任务
分享
create table b
(
a varchar(10)
)
insert into b select ''''
insert into b select " "
select a='''' from b
select a=" " from b
drop table b
a
----
'
'
(所影响的行数为 2 行)
a
----
(所影响的行数为 2 行)
是:
select a='''' from b
不是
select a="" from b
select a='''' from b
其中 a 是别名, '''' 表示由一个单引号组成的字符串,显示结果为:
a
'
'
...
'
其行数等于 b 的记录数