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
  • No tags were found...

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

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

4.2.1 DELETE ......................................................................................................................... 204.2.2 INSERT .......................................................................................................................... 204.2.3 UPDATE ......................................................................................................................... 214.2.4 READTEXT, UDATETEXT, WRITETEXT ................................................................. 214.2.5 TRUNCATE TABLE ...................................................................................................... 214.3 Query Statements ..................................................................................................................... 224.3.1 SELECT ......................................................................................................................... 224.3.2 JOIN ............................................................................................................................... 234.3.3 UNION ........................................................................................................................... 234.3.4 FETCH Cursor ............................................................................................................... 234.4 Flow Control Statements .......................................................................................................... 244.4.1 CASE ............................................................................................................................. 244.4.2 GOTO and Labels .......................................................................................................... 244.4.3 WAITFOR ...................................................................................................................... 244.5 Assignment Statements ............................................................................................................ 244.5.1 DECLARE ..................................................................................................................... 244.5.2 SET ................................................................................................................................. 244.6 <strong>Transact</strong>ion Statements ............................................................................................................. 254.6.1 SET TRANSACTION ISOLATION LEVEL ................................................................ 254.6.2 BEGIN TRANSACTION .............................................................................................. 264.6.3 COMMIT TRANSACTION .......................................................................................... 264.6.4 ROLLBACK TRANSACTION ...................................................................................... 264.6.5 CHECKPOINT .............................................................................................................. 264.6.6 LOCK TABLE ............................................................................................................... 274.7 Procedure Statements ............................................................................................................... 274.7.1 CREATE PROCEDURE / CREATE FUNCTION ......................................................... 274.7.2 ALTER FUNCTION ...................................................................................................... 284.7.3 DROP PROCEDURE / DROP FUNCTION .................................................................. 284.7.4 RETURN ........................................................................................................................ 284.7.5 EXECUTE ..................................................................................................................... 284.8 Other Statements ...................................................................................................................... 284.8.1 GRANT and REVOKE .................................................................................................. 284.8.2 PRINT ............................................................................................................................ 284.8.3 RAISERROR ................................................................................................................. 294.8.4 USE database ................................................................................................................. 294.9 <strong>InterSystems</strong> Extensions .......................................................................................................... 294.9.1 CACHE .......................................................................................................................... 294.9.2 IMPORTASQUERY ....................................................................................................... 305 T<strong>SQL</strong> Settings ................................................................................................................................... 315.1 DIALECT ................................................................................................................................. 315.2 TRACE ..................................................................................................................................... 315.3 CASEINSCOMPARE .............................................................................................................. 325.4 QUOTED_IDENTIFIER .......................................................................................................... 326 T<strong>SQL</strong> Functions ................................................................................................................................ 336.1 Supported Functions ................................................................................................................. 336.1.1 ABS ................................................................................................................................ 336.1.2 ACOS ............................................................................................................................. 336.1.3 ASCII ............................................................................................................................. 336.1.4 ASIN ............................................................................................................................... 336.1.5 ATAN .............................................................................................................................. 33iv<strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!