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

sql serverת»»ÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

¸÷λ´óÏÀ£ºÎÒÏÖÔÚÓÐÒ»¸öÊý¾Ý¿â£¬ËüÀïÃæÓÐÒ»ÕÅ±í¡£ÕâÕűíÀï´æ·ÅÁËÉÌÆ̵ÄÃæ»ýµÈÐÅÏ¢¡£ÎÒÏÖÔÚÏë²éѯ³öÉÌÆÌÃæ»ýÔÚ30-50Ö®¼äµÄ£¬µ«ÊDZíÀïµÄÊý¾ÝÈ«²¿ÎªcharÀàÐ͵ģ¬ÎÒ¸ÃÔõô½øÐÐת»»±È½Ï¡£
SQL code:
where cast(col as dec(18,2)) between 30 and 50


SQL code:
cast(ÉÌÆ·Ãæ»ý as int) between 30 and 50


SQL code:

cast colname as numeric(10,2)



ÒýÓÃ
¸÷λ´óÏÀ£ºÎÒÏÖÔÚÓÐÒ»¸öÊý¾Ý¿â£¬ËüÀïÃæÓÐÒ»ÕÅ±í¡£ÕâÕűíÀï´æ·ÅÁËÉÌÆ̵ÄÃæ»ýµÈÐÅÏ¢¡£ÎÒÏÖÔÚÏë²éѯ³öÉÌÆÌÃæ»ýÔÚ30-50Ö®¼äµÄ£¬µ«ÊDZíÀïµÄÊý¾ÝÈ«²¿ÎªcharÀàÐ͵ģ¬ÎÒ¸ÃÔõô½øÐÐת»»±È½Ï¡£

select * from tb where cast(col as int) between 30 and 50
select * from tb where convert(int , col) between 30 and 50



Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

sql - MS-SQL Server / ÒÉÄÑÎÊÌâ

sqlµÄÈí¼þÔÚÄÄÀï¿ÉÒÔÏ°¡£¡ÔÚÍøÉÏÕÒÁËÂù¶à¶¼Óò»ÁË°¡

Ëæ±ã¸ãÒ»D°æ°É£¬

ѸÀ×µÚÒ»¸ö¾Í¿ÉÒÔÓÃ
2000,2005¶¼ÕâÑù

http://119.147.41.16/down?cid=0698C2D64D7D637D90A6D2482298E6717D4F15CD&t=2&fmt=-1 ......

SQL·ÖÒ³ÓëOracle·ÖÒ³µÄÒÉÎÊ£¿ - Java / Web ¿ª·¢

ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ã棬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......

Accessͨ¹ýSqlÓï¾ä´´½¨Êý¾Ý¿â - .NET¼¼Êõ / C#

ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
  C=ID T="INTEGER" P=No M=No N="±àºÅ" Z=false,
  C=Ques ......

SQLÄܽøÐжþ½øÖƵÄɸѡÂ𣿠- MS-SQL Server / »ù´¡Àà

ÎÒÓÐÒ»¸ö×Ö¶ÎÊÇ varchar(1) ÀàÐÍ£¬¶þ½øÖƱíʾҲ¾ÍÊÇ8λµÄ ¡®0000 0000¡¯
±ÈÈçÕâ¸öʱºòÎÒÐèҪɸѡ³öÕâ¸ö×Ö¶ÎΪËùÓÐµÄ ¡®0000 0100¡¯µÄÐУ¬ÇëÎÊSQLÄÜʵÏÖÕâÑùµÄ¡°Î»¡±µÄɸѡÂð£¿
лл~~~

ÓÐλ²Ù×ݺ¯ÊýÂ𣿲»ÐоÍ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ