psql> create view testv01 as select * from sample where col01 = 'A'; psql> select * from testv01; col01 | col02 -------+------- A | 100 A | 200
mysql> create view testv01 as select * from sample where col01 = 'A'; mysql> select * from testv01; +-------+-------+ | col01 | col02 | +-------+-------+ | A | 100 | | A | 200 | +-------+-------+