Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

union all limits

$
0
0

hi folks.

 

we had this question directed at us so i thought to move it on to this discussion to see if any one had some ideas. thanks.

 

I have a question to you: how many UNION ALL SELECT “raw literal” subqueries can I use in one SQL query to Sybase Server?

I need to insert a batch of strings to temporary table. The most pretty syntax for this (according to Sybase restrictions) is to use the following query: “insert #tmp select “string1” union all select “string2” union all select …”.


Sybase documentation says the following:
The maximum number of subqueries within a single side of a union is 50.

The total number of tables that can appear on all sides of a union query is 256.

 

And what’s about my case of query? I’ve successfully inserted 500 entries in such way but what about maximum possible number of inserts?


Viewing all articles
Browse latest Browse all 3587

Trending Articles