Sub Md() ' ' Macro1 Macro ' 宏由 BX 录制,时间: 2012-6-8 ' 宏中的列数可以输入 A - IV 也可以输入 1-256 ' Dim i%, j%, i1%, j1%, i2%, j2% myi = UCase(InputBox("第一列")) myj = UCase(InputBox("第二列")) ' '************************************ If myi Like "[A-Z]
1.表中有A B C三列,用SQL语句实现:当A列大于B列时选择A列否则选择B列,当B列大于C列时选择B列否则选择C列. select (case when a>b then a else b end),(case when b>c then b else c end) from table; 2.关于Case的解释如下: Case Statement CASE 表达式 WHEN 条件1 THEN 返回值1 WHEN 条件2 THEN 返回值2...WHEN 条件n THEN 返回值nELSE
public class MapUtil{ public static void iteratorMap1(Map m) { Set set=m.keySet();//用接口实例接口 Iterator iter = set.iterator(); while (iter.hasNext()) {//遍历二次,速度慢 String k=(String)iter.next(); System.out.println(k +"="+ m.get(k)); //System.out.print
select top 100 t2.FullName, * from Subject,(select id, isnull(first_name,'') +isnull(middle_name,'') + ' '+isnull(last_name,'') as FullName from Subject ) T2 where Subject.id = T2.id and T2.id = 372 --update Subject set Subject.full_name = T2.FullNam
一起来学matlab-数组取值 觉得有用的话,欢迎一起讨论相互学习~Follow Me MATLAB中的字符串符号 :冒号 s1=['I am sad';'you are ';'interest'] % 按照行取值 a1=s1(1,:) % 表示取第一行,列全取值 % 按照列取值 b1=s1(:,1) % 表示取第一列,行全取值 >> s1=['I am sad';'you are ';'interest'] s1 = I am sad you are interest >> a1