The Documentation says ( as a new feature ) you can Declare a two dimensional Composite Data Type ( ARRAY )

Is this true ? It only allows me to declare one dimension

e.g. DECLARE New2DArray INTEGER ARRAY(5) ARRAY(10);

if not, is there a work-around ?

greg

asked 19 Jun, 07:30

Gregory%20Durniak's gravatar image

Gregory Durniak
816712
accept rate: 0%


You are relating to the following doc page, right?

AFAIK, the mentioned sample does not fit. You have to build an array of arrays as mentioned in the next sample from that page, such as

DECLARE New2DArray ARRAY(10) OF ARRAY(5) OF INTEGER;

More samples and explanations can be found in Breck's great Top 10 Cool New Features in SAP Sybase SQL Anywhere 16 article.

permanent link

answered 19 Jun, 08:58

Volker%20Barth's gravatar image

Volker Barth
33.8k330486716
accept rate: 33%

edited 19 Jun, 08:59

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3

question asked: 19 Jun, 07:30

question was seen: 71 times

last updated: 19 Jun, 08:59