create table tmp
( ID INT PRIMARY KEY,
TextVal varchar(10)
)
insert into tmp (ID, TextVal) values (1, '1')
insert into tmp (ID, TextVal) values (2, '2')
insert into tmp (ID, TextVal) values (3, '3')
create view vw_tmp
as
select ID,
CASE USER_ID()
WHEN 1 THEN TextVal
ELSE ''
END as TextVal
from tmp