MyFirstUDRKit/sql/MyFirstUDRKit.ddl

28 lines
775 B
Plaintext
Raw Normal View History

2023-01-23 15:31:32 +01:00
/*
* This demonstrates how to declare the UDRs globally
*/
create or alter function div (
anumerator integer, adenominator integer
)
returns double precision
2023-01-25 15:58:51 +01:00
external name 'MyFirstUDRKit!MFK_div!Divide anumerator by adenominator' engine udr;
grant execute on function div to public;
2023-01-23 15:31:32 +01:00
2023-01-24 15:58:30 +01:00
2023-01-23 15:31:32 +01:00
create or alter function flagged (
flags integer, flag integer
)
returns integer
2023-01-25 15:58:51 +01:00
external name 'MyFirstUDRKit!MFK_flagged!How is this function used?' engine udr;
grant execute on function flagged to public;
2023-01-24 15:58:30 +01:00
2023-01-25 15:58:51 +01:00
-- create or alter function LoadBlobFromFile (
-- afilename varchar(8191),
-- ablob BLOB
-- ) returns bigint
-- external name 'MyFirstUDRKit!MFK_Load_Blob_From_File!Load file and save to Blob'
-- engine udr;
-- grant execute on function LoadBlobFromFile to public;