Quantcast
Channel: AS/400 Parameters – IT Answers
Viewing all articles
Browse latest Browse all 23

SELECT with LIMIT in AS/400

$
0
0

Hi all,

On my AS400, I need to select the first 90 records from one file and insert them into another file, but all the time i got all records in my result file. Is there any way to use the parameter LIMIT with my SQL SELECT

INSERT INTO LIB1/FILE1 (FILE1) SELECT DISTINCT                  (substring(FILE1, 1, 100)) FROM FILE1 WHERE FILE1 like ‘%xxxx%’  

thank you


Viewing all articles
Browse latest Browse all 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>