Skip to content

Use Database

Mathias Rangel Wulff edited this page Jun 11, 2015 · 4 revisions

Keyword USE DATABASE

Syntax:

    USE [DATABASE] databaseid
    alasql('CREATE DATABASE geo');
    alasql('USE geo');

To select current database:

	alasql.use('test01');

	// or

	alasql('USE test01');    

	// or

	alasql('USE DATABASE test01');    

You can check current database name in alasql.useid property:

    console.log('Current database:', alasql.useid);

See also: [CREATE DATABASE](Create Database), [ATTACH DATABASE](Attach Database)

Clone this wiki locally