摘要:
use pubsgoselect avg(distinct price)--算平均数from titleswhere type='business'go use pubsgoselect max(ytd_sales)--最大数from titlesgo use pubsgoselect min(ytd_sales) --最小数from titlesgo use pubsgoselect type,... 阅读全文
posted @ 2009-06-25 23:17
张立余
阅读(259)
评论(0)
推荐(0)
摘要:
【转】IsNull 和 SQL语句中CASE WHEN用法收藏 【转】IsNull 和 SQL语句中CASE WHEN用法 1、ISNULL 使用指定的替换值替换 NULL。 语法 ISNULL ( check_expression , replacement_value ) 参数 check_expression 将被检查是否为 NULL的表达式。check_expression 可以是任... 阅读全文
posted @ 2009-06-25 23:04
张立余
阅读(13239)
评论(0)
推荐(0)
摘要:
效果图:后台代码:using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebPar... 阅读全文
posted @ 2009-06-25 19:24
张立余
阅读(244)
评论(0)
推荐(0)
摘要:
问:某字段内容可能包含字符串: guan/upload/ 如果有就把它替换成: http://www.cnblogs.com/guan/upload/ 答1:select REPLACE(字段名,'guan/upload/','http://www.cnblogs.com/guan/upload/') as 字段名from 表名答2:update 表 set [某字段]=replace([某字段]... 阅读全文
posted @ 2009-06-25 11:18
张立余
阅读(269)
评论(0)
推荐(0)
摘要:
我有一张表TAB,有两个字段(字段1,字段2),为数字类型,如下 字段1 字段2 552633 0001 662514 0002 645845 0001 我想由这两个字段得到一个字段3,字段1与字段2之间加-;字段2前面的0不要,请问这句SQL如何写?? 字段1 字段2 字段3 552633 0001 552633-1 662514 0002 662514-2 645845 0001 ... 阅读全文
posted @ 2009-06-25 11:09
张立余
阅读(320)
评论(0)
推荐(0)
浙公网安备 33010602011771号