-
Notifications
You must be signed in to change notification settings - Fork 664
Create View
Mathias Rangel Wulff edited this page Jun 11, 2015
·
3 revisions
Syntax:
CREATE VIEW viewid [(column, ...)] AS select
AlaSQL supports CREATE VIEW statement:
alasql('create table city (name string, population number); \
create view bigcity (name) as select name from city where population > 1000000; \
insert into city values ("Moscow",11500000), ("Berlin", 3500000), ("Yoshkar-Ola",250000)');
alasql('insert into city values ("New York",16000000)');
Try this example in jsFiddle
See also: [DROP VIEW](Drop View)
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo