23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ALTER USER<br />

ALTER USER<br />

Syntax<br />

6<br />

Once the above statement is executed, the column will appear as a BIGINT column both<br />

internally and to applications.<br />

A statement such as this executed against a column that is not 32-bit will result in an error.<br />

In this example, ALTER TABLE adds an ABL description to a table and changes the ABL default<br />

data access index of the table:<br />

ALTER TABLE pub.customer SET PRO_DESCRIPTION 'Sports 2000 Customers';<br />

ALTER TABLE pub.customer SET PRO_DEFAULT_INDEX CustNumIdx;<br />

In this example, ALTER TABLE RENAME INDEX is used to change an index named CustNum to<br />

CustomerNumberIndex:<br />

ALTER TABLE Customers RENAME INDEX CustNum to CustomerNumberIndex;<br />

The ALTER TABLE statement enables you to change the names of tables or columns or to add<br />

columns while your database is online servicing other requests. Other changes performed by<br />

ALTER TABLE must occur offline.<br />

Authorization<br />

Must have the DBA privilege, ownership of the table, or all the specified privileges on the<br />

table.<br />

Related statements<br />

ADD TABLE, DROP TABLE<br />

Changes the password for the specified user.<br />

ALTER USER 'username', 'old_password', 'new_password' ;<br />

Example In this example, the ALTER USER statement Jasper changes the Jasper account password from<br />

normandy to brittany:<br />

ALTER USER 'Jasper', 'normandy', 'brittany' ;<br />

Notes • Used in conjunction with CREATE USER and DROP USER, the ALTER USER statement provides<br />

a way to change a user password.<br />

• The old_password specification must match the current password for username.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!