Quantcast
Viewing all articles
Browse latest Browse all 23

SELECT with LIMIT in AS/400

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

The post SELECT with LIMIT in AS/400 appeared first on IT Answers.


Viewing all articles
Browse latest Browse all 23

Trending Articles