menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Databases

>

PL/SQL Lis...
source image

Mclaughlinsoftware

4d

read

162

img
dot

PL/SQL List to Struct

  • This post shows you how to take a list of strings and convert them into a struct(ure) of a date, number, and string.
  • Oracle implements IDL (Interface Description Language), which means the solution requires creating an attribute data type (ADT), a user defined type (UDT), and a collection of the UDT object type.
  • The code example provides the data definition language (DDL) for the required structures, as well as a function named cast_strings that performs the conversion.
  • By applying the cast_strings function to a list of strings, you can obtain a struct(ure) object type containing the parsed values of date, number, and string.

Read Full Article

like

9 Likes

For uninterrupted reading, download the app