12.07.2015 Views

Why use ASE 15.0 - Sybase

Why use ASE 15.0 - Sybase

Why use ASE 15.0 - Sybase

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 User-Defined FunctionsSQL UDFs can be <strong>use</strong>d in computed columns, defaultscreate table t ( a int default dbo.MyFunc() )create default dft1 as dbo.MyFunc()create table t ( a int, b as dbo.MyFunc(a) materialized)create index ix1 on t ( dbo.MyFunc(a) )select * from twhere dbo.MyFunc(a) = 10NB: a materialized CPC better be deterministic, otherwise CPCs andfunction indexes are pointless…so a SQL UDF in a CPC should also be deterministic<strong>Sybase</strong> Symposium 2007 – November 15 - Brussels27

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

Saved successfully!

Ooh no, something went wrong!