Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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²éѯÓÅ»¯

»ùÓÚË÷ÒýµÄSQLÓï¾äÓÅ»¯Ö®½µÁúÊ®°ËÕÆ
1         Ç°ÑÔ
¿Í·þÒµÎñÊܵ½SQLÓï¾äµÄÓ°Ïì·Ç³£´ó£¬ÔÚ¹æÄ£±È½Ï´óµÄ¾Öµã£¬ÍùÍùÒòΪһ¸öСµÄSQLÓï¾ä²»¹»ÓÅ»¯£¬µ¼ÖÂÊý¾Ý¿âÐÔÄܼ±¾çϽµ£¬Ð¡ÐÍ»úidleËùÊ£ÎÞ¼¸£¬Ó¦Ó÷þÎñÆ÷¶ÏÁ¬¡¢³¬Ê±£¬ÑÏÖØÓ°ÏìÒµÎñµÄÕý³£ÔËÐС£Òò´Ë£¬³ÆµÍЧµÄSQLÓï¾äΪ¿Í·þÒµÎñµÄ ......

linq to sql ²åÈëÖµ£¬ÒÔ¼°ÈçºÎÈ¡»Ø×ÔÔöµÄID

linq to sql ÔÚ²åÈëÖµµÄʱºò»¹ÊǺܷ½±ã¡£ÓÐʱºòÎÒÃÇÐèÒªÔÚ²åÈëÒ»¸öеÄʵÌåÖ®ºóµÃµ½ÄǸöʵÌåµÄÖ÷¼üIDµÄÖµ£¬Õâ¸öIDµ±È»±ØÐëÊÇ×ÔÔö¡£Ò»¶Îʱ¼äÎÒÒ»Ö±ÈÏΪֱ½ÓʹÓÃlinq to sqlµÄ²åÈë»úÖÆÊDz»¿ÉÒÔÔÚ×öµ½µÄ£¬ËùÒÔÖ»ÓÐʹÓô洢¹ý³ÌµÄ£¬¾ßÌå¿ÉÒԲ鿴ÕâƪÎÄÕ£ºhttp://blog.benhall.me.uk/2008/01/custom-insert-logic-with-linq-to- ......

SQL 2005Ô¶³Ì·ÃÎʵÄÉèÖÃ

SQL 2005Ô¶³Ì·ÃÎʵÄÉèÖÃ
2009-02-27 08:13
1¡¢Ê×ÏÈ´ò¿ªSQL Server ÍâΧӦÓÃÅäÖÃÆ÷£¬µã»÷“·þÎñºÍÁ¬½ÓµÄÍâΧӦÓÃÅäÖÃÆ÷”£¬Ñ¡ÔñÊý¾Ý¿â→Ô¶³Ì·þÎñ£¬µãÉϱ¾µØÁ¬½ÓºÍÔ¶³ÌÁ¬½Ó£¬ÔÙµãÉÏͬʱʹÓÃtcp/ipºÍnamed pipes
2¡¢´ò¿ªSQL Server Configuration Manager£¬SQL Server 2005ÍøÂçÅäÖ㬽«TCP/IPÆôÓÃÁË¡£
3¡¢Ò» ......

SQL ServerÖеÄT SQLµÄ»ù±¾¶ÔÏó


    SQLµÄ»ù±¾¶ÔÏóÖ÷ÒªÓг£Á¿£¬±íʾ·û£¬·Ö¸ô·û£¬±£Áô¹Ø¼ü×Ö¡£
 1¡¢³£Á¿
 ³£Á¿ÊÇÒ»¸ö°üº¬ÎÄ×ÖÓëÊý×Ö£¬Ê®Áù½øÖÆ»òÊý×Ö³£Á¿¡£Ò»¸ö×Ö·û´®³£Á¿°üº¬µ¥ÒýºÅ('')»òË«ÒýºÅ("")×Ö·û¼¯ÖеÄÒ»¸ö»ò¶à¸ö×Ö·û¡£
 Èç¹ûÏëÔÚµ¥ÒýºÅ·Ö¸ôµÄ×Ö·û´®ÖÐÓõ½µ¥¶ÀµÄÒýºÅ£¬¿ÉÒÔÔÚÕâ¸ö×Ö·ûÖÐÓû§Á¬ÐøµÄµ¥ÒýºÅ£¨¼´ÓÃÁ ......

SQLͳ¼Æ´óÈ«ÊÕ²Ø°æ ¸öÈËʹÓÃ

ÎÄÕÂÀ´Ô´£ºIT¹¤³Ì¼¼ÊõÍø£¬ È«ÎÄÁ´½Ó£ºhttp://www.systhinker.com/html/81/n-11481.html
1.¼ÆËãÿ¸öÈ˵Ä×ܳɼ¨²¢ÅÅÃû
select name,sum(score) as allscore from stuscore group by name order by allscore
2.¼ÆËãÿ¸öÈ˵Ä×ܳɼ¨²¢ÅÅÃû
select distinct t1.name,t1.stuid,t2.allscore from stuscore t1,( select st ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ