13.07.2015 Views

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of ContentsAbout This Book .................................................................................................................................... 11 Overview .............................................................................................................................................. 31.1 Getting Started ............................................................................................................................ 31.1.1 Configuring T<strong>SQL</strong> ........................................................................................................... 31.1.2 Migrating Source Code .................................................................................................... 31.1.3 Migrating the Data ........................................................................................................... 41.2 T<strong>SQL</strong> Language Implementation ............................................................................................... 42 <strong>Caché</strong> T<strong>SQL</strong> Constructs .................................................................................................................... 72.1 Commonly Used Constructs ....................................................................................................... 72.1.1 Table References .............................................................................................................. 72.1.2 Temporary Tables ............................................................................................................. 72.1.3 <strong>Transact</strong>ions ..................................................................................................................... 82.1.4 Cursor Name Management .............................................................................................. 82.1.5 System Stored Procedures ................................................................................................ 82.1.6 System Tables ................................................................................................................... 82.1.7 SYSOBJECTS References ............................................................................................... 93 <strong>Caché</strong> T<strong>SQL</strong> Language Elements ................................................................................................... 113.1 Literals ...................................................................................................................................... 113.1.1 String Literals ................................................................................................................. 113.1.2 Empty Strings ................................................................................................................. 113.1.3 NULL ............................................................................................................................. 123.1.4 Hexadecimal ................................................................................................................... 123.1.5 Reserved Words .............................................................................................................. 123.1.6 Comments, Blank Lines, and Semicolons ..................................................................... 123.2 Identifiers ................................................................................................................................. 133.3 Data Types ................................................................................................................................ 133.4 Operators .................................................................................................................................. 143.4.1 Arithmetic and Equality Operators ................................................................................ 143.4.2 Concatenation Operator ................................................................................................. 153.4.3 Comparison Operators ................................................................................................... 153.4.4 NOT Logical Operator ................................................................................................... 153.4.5 Bitwise Logical Operators ............................................................................................. 164 T<strong>SQL</strong> Commands ............................................................................................................................. 174.1 Data Definition Language (DDL) Statements .......................................................................... 174.1.1 CREATE TABLE ........................................................................................................... 174.1.2 ALTER TABLE .............................................................................................................. 184.1.3 DROP TABLE ................................................................................................................ 194.1.4 CREATE INDEX ........................................................................................................... 194.1.5 DROP INDEX ................................................................................................................ 194.1.6 CREATE TRIGGER ...................................................................................................... 204.1.7 DROP TRIGGER ........................................................................................................... 204.1.8 CREATE VIEW ............................................................................................................. 204.1.9 DROP VIEW .................................................................................................................. 204.2 Data Management Language (DML) Statements ..................................................................... 214.2.1 DELETE ......................................................................................................................... 21<strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong>iii

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

Saved successfully!

Ooh no, something went wrong!