if exists( select exp_count from tbl_expend where exp_valid ),exp_date,) ),) ) begin select exp_count into #temp1 from tbl_expend where exp_valid ),exp_date,) ),) end else begin as exp_count into #temp1 end…
列表,字典,集合中根据条件筛选数据,如下所示 列表:[-10,2,2,3,-2,7,6,9] 找出所有的非负数 字典:{1:90,2:55,3:87...} 找出所有值大于60的键值对 集合:{2,3,8,6,7,5} 找出所有被3整除的数 列表 >>> from random import randint >>> data = [randint(-10,10) for x in xrange(10)] >>> data [-1, 8, -9, 9,…