Oracle implements mysql update limit and oraclemysql

Source: Internet
Author: User

Oracle implements mysql update limit and oraclemysql

Oracle seems to be lagging behind and inconvenient to use. The Toad software is stupid and slow, and pl/SQL is even more. The interface style in 1990s is slow. Oracle does not support limit. By default7 # zbphp.com


Update tb_news set typeid = 9 where id in (select id from (select rownum rn,. * from (select * from tb_news where typeid not in (3, 6, 5, 9) a) where rn between 0 and 12); commit; // an error is returned when this commit is added at the end! Speechless



Does the mysql update statement support limit? Update xxxxx limit 0, 1

The limit in mysql stored procedures cannot directly use variables.
Set @ SQL _1 = "select * from... limit? ";
Prepare stmt from @ SQL _1;
Execute stmt using @ step; # add multiple parameters together with the parameters you pass
Deallocate prepare stmt;
Commit;

How Does oracle implement the limit statement in mysql? Urgent,

Select rownum, Field 1... from table rownum> 5 and rownum <10

Order by cannot be added later. If order by is to be added, subquery is required.

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.