2009年12月28日
摘要: UPDATE cdb_name SET field_name = replace (cast(field_name as varchar(8000)) ,’from_str’,'to_str’)说明:cdb_name —— 该字符或字符串所在表的名字field_name —— 该字符或字符串所在字段的字段名from... 阅读全文
posted @ 2009-12-28 10:27 峫噁Da兎兎 阅读(201) 评论(0) 推荐(0) 编辑
摘要: string str = "select top 4 newsid,title,content from ent_news " + "where newsid<>(select top 1 newsid from ent_news order by newsid desc) " + "order by newsid desc";string str = "select top 4 ne... 阅读全文
posted @ 2009-12-28 10:26 峫噁Da兎兎 阅读(122) 评论(0) 推荐(0) 编辑
摘要: select *,tt = case tui when 1 then '推荐' else '' end from 表名 阅读全文
posted @ 2009-12-28 10:25 峫噁Da兎兎 阅读(169) 评论(0) 推荐(0) 编辑
摘要: alter table 表 alter column 字段名 floatalter table 表 add 字段名 float 阅读全文
posted @ 2009-12-28 10:24 峫噁Da兎兎 阅读(150) 评论(0) 推荐(0) 编辑
  2009年12月21日
摘要: CREATE proc [dbo].[sp_Feedback](@feedbackID int=0 out, @replyToID int=0, @title varchar(100)=null,@isPublish bit=0,@action int=0 --1 insert 2 update 3delete 4select(id)) ASIF @action = 1 BEGININSERT ... 阅读全文
posted @ 2009-12-21 14:38 峫噁Da兎兎 阅读(92) 评论(0) 推荐(0) 编辑