Produces 10,000 consecutive records

Source: Internet
Author: User
Produces 10,000 consecutive records
PRINT CONVERT (VARCHAR), GETDATE (), select id = a.id + b.id + c.id + d.id + 1from (SELECT id = 0 UNION ALL Select 1 u Nion All SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5 UNION ALL SELECT 6 UNION ALL select 7 UNION ALL Select 8 UNION ALL Select 9-A, (SELECT id = 0 UNION ALL Select the union ALL select the union ALL select the All SEL ECT UNION ALL Select the union ALL select the union ALL select the union ALL Select a) b, (SELECT ID = 0 UNION ALL Select the union ALL select the union ALL select the union ALL select the all select the Union ALL SE Lect UNION ALL Select the union ALL select the union ALL select 900) c, (SELECT id = 0 UNION ALL select 1000 Union al L Select the union ALL SELECT 3000 UNION ALL SELECT 4000 UNION ALL SELECT 5000 UNION ALL SELECT 6000 UNION ALL SELECT 700 0 UNION ALL Select 8000 union ALL SELECT 9000) Dorder by Idprint CONVERT (VARCHAR (), GETDATE (), 21)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.