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.

Use the following syntax to assign sequence privileges:<br />

SELECT<br />

UPDATE<br />

Allows specified user to read data from the sequence.<br />

Allows specified user to modify data for the sequence.<br />

GRANT<br />

In this example, the sequence generator grants user slsadmin the ability to modify the customer<br />

number sequence:<br />

The following syntax is a variation on the GRANT statement that enables the user to execute<br />

stored Java procedures:<br />

RESOURCE<br />

DBA<br />

Syntax<br />

{ SELECT | INSERT | DELETE | INDEX<br />

| UPDATE [ ( column , column , ... ) ]<br />

| REFERENCES [ ( column , column , ... ) ] }<br />

Syntax<br />

GRANT [SELECT | UPDATE]<br />

ON SEQUENCE schema.sequence<br />

TO user_name [,user_name]...<br />

GRANT UPDATE<br />

ON SEQUENCE pub.customer_sequence<br />

Syntax<br />

TO slsadmin;<br />

GRANT EXECUTE ON StoredJavaProcedureName () TO { username [, username ] ,<br />

... | PUBLIC }<br />

[ WITH GRANT OPTION ] ;<br />

Allows the specified users to issue CREATE statements.<br />

Allows the specified users to create, access, modify, or delete any database object, and to<br />

grant other users any privileges.<br />

TO username [ , username ] , ...<br />

Grants the specified privileges on the table or view to the specified list of users.<br />

37

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

Saved successfully!

Ooh no, something went wrong!