Sql Server º¯Êýceiling
CEILING£º
½«²ÎÊý Number ÏòÉÏÉáÈ루Ñؾø¶ÔÖµÔö´óµÄ·½Ïò£©Îª×î½Ó½üµÄ significance µÄ±¶Êý¡£ÀýÈ磬Èç¹ûÄú²»Ô¸ÒâʹÓÃÏñ“·Ö”ÕâÑùµÄÁãÇ®£¬¶øËùÒª¹ºÂòµÄÉÌÆ·¼Û¸ñΪ $4.42£¬¿ÉÒÔÓù«Ê½ =CEILING(4.42,0.1) ½«¼Û¸ñÏòÉÏÉáÈëΪÒÔ“½Ç”±íʾ¡£
Óï·¨
CEILING(number,significance)
Number ÒªËÄÉáÎåÈëµÄÊýÖµ¡£
Significance ÊÇÐèÒªËÄÉáÎåÈëµÄ³ËÊý¡£
˵Ã÷
Èç¹û²ÎÊýΪ·ÇÊýÖµÐÍ£¬CEILING ·µ»Ø´íÎóÖµ #VALUE!¡£
ÎÞÂÛÊý×Ö·ûºÅÈçºÎ£¬¶¼°´Ô¶Àë 0 µÄ·½ÏòÏòÉÏÉáÈë¡£Èç¹ûÊý×ÖÒѾΪ Significance µÄ±¶Êý£¬Ôò²»½øÐÐÉáÈë¡£
Èç¹û Number ºÍ Significance ·ûºÅ²»Í¬£¬CEILING ·µ»Ø´íÎóÖµ #NUM!¡£
¹«Ê½ ˵Ã÷£¨½á¹û£©
=CEILING(2.5, 1) ½« 2.5 ÏòÉÏÉáÈëµ½×î½Ó½üµÄ 1 µÄ±¶Êý (3)
=CEILING(-2.5, -2) ½« -2.5 ÏòÉÏÉáÈëµ½×î½Ó½üµÄ -2 µÄ±¶Êý (-4)
=CEILING(-2.5, 2) ·µ»Ø´íÎóÖµ£¬ÒòΪ -2.5 ºÍ 2 µÄ·ûºÅ²»Í¬ (#NUM!)
=CEILING(1.5, 0.1) ½« 1.5 ÏòÉÏÉáÈëµ½×î½Ó½üµÄ 0.1 µÄ±¶Êý (1.5)
=CEILING(0.234, 0.01) ½« 0.234 ÏòÉÏÉáÈëµ½×î½Ó½üµÄ 0.01 µÄ±¶Êý (0.24)
Ïà¹ØÎĵµ£º
SQL Injection with MySQL
±¾ÎÄ×÷Õߣºangel
ÎÄÕÂÐÔÖÊ£ºÔ´´
·¢²¼ÈÕÆÚ£º2004-09-16
±¾ÎÄÒѾ·¢±íÔÚ¡¶ºÚ¿Í·ÀÏß¡·7Ô¿¯£¬×ªÔØÇë×¢Ã÷¡£ÓÉÓÚдÁ˺ܾã¬Ëæ׿¼ÊõµÄ½ø²½£¬±¾ÈËÒ²·¢ÏÖ¸ÃÎÄÀïÓв»ÉÙ´íÎóºÍÂÞàµĵط½¡£Çë¸÷λ¸ßÊÖ¿´Á˲»ÒªÐ¦¡£±¾ÎÄдÓÚ¡¶Advanced SQL Injection with MySQL¡·Ö®Ç°Ò»¸öÔ¡£
ÉùÃ÷
¡¡¡¡±¾ÎĽöÓÃÓÚ½ ......
ÒÔORACLEÊý¾Ý¿âΪÀý£¬ ½«tab±íÖеÄtname×Ö¶Îת³ÉÒÔ¶ººÅ·Ö¸ôµÄ×Ö·û´®
SQLÈçÏ£º
select substr(max(sys_connect_by_path(tname, ',')), 2)
from (
select b.tname, b.t1, lead(b.t1, 1) over (order by b.t1) t2
from (
select a.tname, row_number() over (orde ......
ÎҲſªÊ¼¿´ASP.NETÓëÊý¾Ý¿âµÄÁ¬½Ó£¬½ñÌìÒ»¿ªÊ¼¾ÍÒ»Á¬Óöµ½Èý¸öÎÊÌ⣬ÕÛÌÚÁËÒ»ÍíÉÏ...Ï£ÍûÎҲ鵽µÄ×ÊÁ϶Դó¼ÒÓÐÓá£
×î³õÎÒдµÄÓï¾äÊÇ£º
//Create the Connection
//SqlConnection conn = new SqlConnection(@"Data Source=(local)\NetSDK; Initial Catalog=Northwind; User ID = sa; password = yourPassword;");
ÉÏÃæÕâ ......
ǰЩÈÕ×Ó£¬ÔÚ²Ù×÷Êý¾Ý¿âʱ£¬ÐèÒªÖ´ÐвÙ×÷ʱ¼äºÜ¾ÃµÄsqlÓï¾ä¡£µ«Êǵ±Ê±¾ÖÓòÍøÍøÂçÇé¿ö²»ºÃ£¬¾³£·¢ÉúµôÏßµÄÇé¿ö¡£
´ËʱÐèÒª°ÑÖ´ÐеÄÓï¾ä¼ÓÈëµ½oracle·þÎñÆ÷Éϵĺǫ́½ø³ÌÖУ¬È¥Ö´ÐС£²Ù×÷¹ý³ÌÈçÏ£º
1¡¢Ê×ÏÈ°ÑÐèÒªÖ´ÐеÄsqlÓï¾äд³É½Å±¾£¬´æ´¢µ½sql.sqlÖС£²¢·ÅÖõ½Êý¾Ý¿â·þÎñÆ÷ij·¾¶ÏÂ.
2¡¢Ö´ÐÐÈçÏÂlinuxÃüÁî¼´¿É£º
&nb ......