Hi
Anybody has implemented View for MySQL?
I think it can be done outside of Database
if query transformation approach is used.
CREATE VIEW Model
SELECT * FROM Model_CA, Brand
WHERE Model_CA.brand_ rid = Brand.rid
Select brand_name from Model
where model.name = 'Test'
This can be transformed into
SELECT brand_name FROM Model_CA, Brand
WHERE Model_CA.brand_ rid = Brand.rid and
Model_CA.name = 'Test'
Byung Choi
Anybody has implemented View for MySQL?
I think it can be done outside of Database
if query transformation approach is used.
CREATE VIEW Model
SELECT * FROM Model_CA, Brand
WHERE Model_CA.brand_ rid = Brand.rid
Select brand_name from Model
where model.name = 'Test'
This can be transformed into
SELECT brand_name FROM Model_CA, Brand
WHERE Model_CA.brand_ rid = Brand.rid and
Model_CA.name = 'Test'
Byung Choi
Comment