IBM PureData System for Analytics, Version 7.1

Create a table

To create a table, specify the table name, the column names, and their types. You can enter a table line by line.

The system recognizes that the command is not terminated until it encounters the semicolon (;). An example follows.
MYDB.SCHEMA(USER)=> CREATE TABLE weather (
city            varchar(80),
temp_lo         int,           -- low temperature
temp_hi         int,           -- high temperature 
prcp                               --precipitation
real, 
date                                           --date
);
The following rules apply when you are entering data:
In addition, IBM® Netezza® SQL considers the following system attributes reserved words:


Feedback | Copyright IBM Corporation 2014 | Last updated: 2014-02-28