sql语句是否有最大长度? [英] Is there a maximum length for a sql Statement?

查看:685
本文介绍了sql语句是否有最大长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SQL语句是否有最大长度(限制)?



我尝试按如下方式执行查询



INSERT INTO< sample table => (名称,描述)VALUES(''xxxx'',''描述文字'')



这里我给出了2000000字符的描述文字。 />


通过我的C#代码执行SQL语句时会引发异常SystemOutofMemory。



任何人都可以帮忙我或者请解释一下可能是什么演员。



和描述栏是VARCHAR(MAX)允许NULL。



先谢谢。

解决方案

这是一如既往的依赖于实现的。使用制造商文件;这些信息可能有也可能没有。我无法想象它可能是瓶颈,所以如果你找不到它我就不会感到惊讶。



-SA

Is there a maximum length (limit) for a SQL statement?

I Tried to Execute a Query as follows

INSERT INTO <sample table=""> (name,description) VALUES(''xxxx'',''description text'')

here i have given the description text having character of 2000000.

While executing the SQL statement via my C# code is Throws an Exception "SystemOutofMemory".

Can anyone help me or Explain me what could be the cast of it please.

and the description column is VARCHAR(MAX) allows NULL.

Thanks in Advance.

解决方案

This is, as always, implementation-dependent. Use manufacturer documentation; this information may or may not be available. I cannot imaging that it could be a bottleneck, so I won''t be surprised if you could not find it.

—SA


这篇关于sql语句是否有最大长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆