10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

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.

SQL Syntax SummarySQL Syntax SummaryIn addition to the 4GL statements in the Language Reference <strong>Guide</strong> onlinehelp, you can also include SQL statements in your 4GL scripts.The following is a syntax summary of allowable SQL statements, withparameters that can be 4GL names underlined. If you have the KnowledgeManagement Extension, you will find SQL statements that support this featurein Knowledge Management Extension Syntax (see page 486).copy [table] tablename(columnname = format [with null [(value)]]{, (columnname = format [with null [(value)]]})into|from filename[with-clause]create [unique] index indexname on tablename(columnname {, columnname})[with-clause]create integrity on tablename [corrname]is search_conditioncreate table tablename(columnname format {, columnname format})[with-clause]create table tablename[(columnname {, columnname})]as subselect {union [all] subselect}[with-clause]create view viewname[(columnname {, columnname})]as subselect {union [all] subselect}[with check option]declare global temporary table [session.] tablename(columnname format {, columnname format})[with-clause]drop permit|integrity on tablename all | integer {, integer}drop procedure procnamedrop [table| view| index] objectname {, objectname}grant all [privileges] on [table] tablename {, tablename}to public | username {, username}grant priv {, priv} on [table] tablename {, tablename}to public | username {, username}484 <strong>Programming</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!