摘要:
alter PROCEDURE 根据分类查主题111111111111 @类别ID int asbegin declare @id int set @id=@类别ID; with temp(idCategory,categoryRoot) --递归法 as( select 类别ID,根类别 from dbo.主题类别表 where 根类别=@id union all --Union,对两个结果集进行并集操作,不包括重复行,同时进行默认规则的排序Union All,对两个结果集进行并集操作,包括重复行,不进行排序; select 类别ID,根类别 from dbo.主题类别表... 阅读全文
摘要:
<html><head><script type="text/javascript">function startTime(){var today=new Date()var h=today.getHours()var m=today.getMinutes()var s=today.getSeconds()// add a zero in front of numbers<10m=checkTime(m)s=checkTime(s)document.getElementById('txt').innerHTML=h+ 阅读全文
摘要:
1.INSERT INTO SELECT语句语句形式为:Insert into Table2(field1,field2,...) select value1,value2,... from Table1 要求目标表Table2必须存在,由于目标表Table2已经存在,所以我们除了插入源表Table1的字段外,还可以插入常量。示例如下: 2.SELECT INTO FROM语句语句形式为:SELECT vale1, value2 into Table2 from Table1 要求目标表Table2不存在,因为在插入时会自动创建表Table2,并将Table1中指定字段数据复制到Table2. 阅读全文
摘要:
public class AppConstant中 #region 公告分类状态 public static Hashtable StatusHash = new Hashtable { {"0","全部"}, {"1","公司行规"},{"2","职场秘籍"},{"3","生活小提示"},{"4","电视剧场"},{"5","家庭影院"},{"6 阅读全文