Creating a time series with metadata
You can create an empty or populated time series that also contains user-defined metadata. A time series column includes a header that holds information about the time series and can also contain user-defined metadata.
About this task
Procedure
To create a time series with metadata:
- Create a distinct data type based on the TimeSeriesMeta data
type with the following SQL statement. Substitute MyMetaData with
a name you choose. create distinct type MyMetaData as TimeSeriesMeta
- Create support functions for your metadata data type.
For information on creating support functions, see the Informix® User-Defined Routines and Data Types Developer's Guide.
- Run the TSCreate or TSCreateIrr function with the metadata argument.
Results
After you have created a time series with metadata, you can add, change, remove, and retrieve the metadata. You can also retrieve the name of your metadata type.