| |||||
|
How many rows are returned by these two select s More DBA job interview questions and answers at
http://dba.fyicenter.com/Interview-Questions/
(Continued from previous question...) How many rows are returned by these two select statements?
insert mytable select '' create table mytable ( id int identity(1,1) , mychar varchar(20) ) go insert mytable select null insert mytable select '' insert mytable select ' ' go set ansi_nulls on set ansi_null_dflt_on on select * from mytable where mychar is not null select * from mytable where mychar <> '' and mychar is not null select * from mytable where mychar <> ' ' and mychar is not null select * from mytable where mychar = '' select * from mytable where mychar = ' ' set ansi_null_dflt_on off set ansi_nulls off go drop table mytable (Continued on next question...)
Other Job Interview Questions
|
||||