Skip to content

apimigrationcreateview

Jeremy Keczan edited this page Apr 28, 2015 · 6 revisions

createView()

Usage

Creates a view definition object

Function Syntax

v = createView(name,);

Parameters

Parameters Type Required Default Description
name string yes   The name of the view you wish to create

Notes

Note that the view will not be created in the database until you call the create function on the view definition object.

Examples

// basic create ciew
v = createView('vUsers');
v.selectStatement("SELECT userid, (FirstName + ' ' + LastName) as fullName FROM users");
v.create();

Clone this wiki locally