急求!如何创建mysql的视图并输出到浏览器显示?能否实现?
如题,希望大神给出示例!
------解决方案--------------------
create view as select * from table1 where id<10
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
创建视图:CREATE VIEW v AS SELECT qty, price, qty*price AS value FROM t;
访问视图:SELECT * FROM v;