db2 V8的有关SQL limits
The following tables describe certain SQL
limits. Adhering to the most restrictive case can help the programmer
design application programs that are easily portable.
Table 7. Identifier Length Limits
Description
Limit in Bytes
Longest authorization
name (can only be single-byte characters)
30
Longest
constraint name
18
Longest correlation name
128
Longest condition name
64
Longest
cursor name
18
Longest unqualified column name (nickname)
128
Longest data source index name
128
Longest
data source name
128
Longest data source table name (remote-table-name
)
128
Longest
external program name
8
Longest host identifiera
255
Longest identifier of a data source user (remote-authorization-name
)
30
Longest label name
64
Longest method name
18
Longest parameter nameb
128
Longest
password to access a data source
32
Longest savepoint name
128
Longest schema namec
30
Longest server
(database alias) name
8
Longest SQL variable name
64
Longest
statement name
18
Longest transform. group name
18
Longest unqualified column name
30
Longest
unqualified package name
8
Longest unqualified user-defined type,
user-defined function, user-defined method, buffer pool, table space,
database partition group, trigger, index, or index specification name
18
Longest unqualified table name, view name, stored procedure
name, sequence name, nickname, or alias
128
Longest
wrapper name
128
Notes:
a
Individual
host language compilers may have a more restrictive limit on variable
names.
b
Parameter names in an SQL procedure are
limited to 64 bytes.
c
The schema name for a
user-defined type is limited to 8 bytes.
Table 8. Numeric Limits
Description
Limit
Smallest INTEGER value
-2 147 483 648
Largest INTEGER value
+2 147 483 647
Smallest BIGINT value
-9 223 372 036 854 775 808
Largest BIGINT value
+9 223 372 036 85
相关文档:
昨天我的SQL(Microsoft SQL Server 2005 )登录不上去了,原来是出现了几个小问题,现在记录一下我的解决这几个情况的办法。(解决方法有很多种,这些只是我的解决方法,仅供参考)
查找问题的过程:(注:用windows账号还是可以登录的)
第一步:启动所有与SQL有关的服务,问题依旧;
第二步:查看windows防火墙,被默 ......
在windows2003下面安装SQL Server2000,会提示windows不支持SQL Server2000的版本,安装后,在本机是可以正常使用的,但是无法连接到其他SQL Server2000的服务器,也无法通过其他机器上的SQL Server2000访问,必须安装SQL Server2000sp3或sp4补丁才可以。其实用SQL Server2005就没这么麻烦了。 ......
On BULK COLLECT
By Steven Feuerstein Oracle ACE
Best practices for knowing your LIMIT and kicking %NOTFOUND
I have started using BULK COLLECT whenever I need to fetch large volumes of data. This has caused me some trouble with my DBA, however. He is complaining that although my programs mig ......
linq to sql 在插入值的时候还是很方便。有时候我们需要在插入一个新的实体之后得到那个实体的主键ID的值,这个ID当然必须是自增。一段时间我一直认为直接使用linq to sql的插入机制是不可以在做到的,所以只有使用存储过程的,具体可以查看这篇文章:http://blog.benhall.me.uk/2008/01/custom-insert-logic-with-linq-to- ......
测试机test安装的是windows server2008+sql server 2008,数据库安装成功。可以连接局域网内其他机器的数据库(其他机器的数据库为SQL 2005)。但是网内其他机器访问test时,无法连接,报错。信息为:在建立与服务器的连接时出错。在连接到SQL SERVER 2005时,在默认的设置下SQL SERVER 不允许进行远程连接可能会导致次失败 ......