简体   繁体   中英

Maximum number or characters per select statement

oracle中的SQL语句中可以使用的最大字符数是多少?

The Oracle documentation doesn't give a maximum length for a SQL query. Check this here .

This is because the physical limit depends on the OS of the database server. Suffice to say the actual limit will be way bigger than any practical query you could write (or even generate).

There used to be a practical limit for EXECUTE IMMEDIATE of 32767 because that's the limit of a PL/SQL varchar2 variable. But these days we can feed EXECUTE IMMEDIATE with much larger statements using clob. Still doesn't mean we should :)

It depends on many things like space in disk and memory etc. But yes you shouldn't put large data in a query. It's not a good option.

Normally following what I said it doesn't require huge characters in the query, which might make you ask this question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM