HPlogo ALLBASE/SQL Reference Manual > Chapter 11 SQL Statements E - R

RENAME COLUMN

MPE documents

Complete PDF
Table of Contents
Index

E0300 Edition 9 ♥
E0399 Edition 8
E0897 Edition 7

The RENAME COLUMN statement defines a new name for an existing column in the DBEnvironment.

Scope


Application Programs

SQL Syntax



  RENAME COLUMN [Owner.]TableName.ColumnName TO NewColumnName

Parameters


[Owner.]TableName.ColumnName

designates the table column to be renamed.

NewColumnName

is the new column name.

Description


  • All indexes, columns, default columns, constraints, referential authorization, rules, and user authorities tables dependent on a renamed column will be renamed.

  • All views dependent on a renamed column will be dropped.

  • If a column has check constraints, then that column cannot be renamed.

Authorization


You must have DBA authority to use this statement.

Example



   RENAME COLUMN Parts.PartNumber to NewPartNum;




REMOVE FROM GROUP


RENAME TABLE