linux怎么查看装的是那个版本?
单位新买了台linux的机器,但是不知道装的什么版本,怎么查看?
更新时间:2023-08-17 17:08
最满意答案
SQL Server 2005及以上版本可以用XML PATH select left(A,len(A)-1) from(select (select a0101+',' from a01 a,deptcode dwhere a.dept_id = d.dept_id and d.dept_code like '0100%'and a0191 = '在岗正式员工'FOR XML PATH('')) A) t
其他回答
很简单啊,行专列用case 列换行用union select rq ,max(case dm when 'a' then xl end) as a,max(case dm when 'b' then xl end ) as b,max(case dm when 'c' then xl end) as c,max(case dm when 'd' then xl end) as d 我郁闷,就是没写完整,思路都给出了你还补充
相关问答
更多-
sql 行转列[2023-08-15]
最简答的方法:使用程序数组,例如你现在的代码是: do while not rs.eof response.write rs("....") rs.movenext end do 那么可以下面这样输出: '先为每个字段定义数组 dim a(1) dim b(1) n=1 do while not rs.eof a(n)=rs("a") b(n)=rs("b") '...有多少字段写多少行.... n=n+1 rs.movenext end do '下面再输出 response.write ""; respo ... -
sql行转列[2023-05-04]
SELECT e.NAME as name, count(case when DATEPART(year,c.START_TIME)=2014 then 1 else null end ) as count2014, count(case when DATEPART(year,c.START_TIME)=2015 then 1 else null end ) as count2015 from ENVI_DATA_STATISTIC_COMP c LEFT JOIN ENVI_CITY e on e.CIT ... -
ORACLE行转列问题[2022-07-29]
ORACLE行转列问题 CREATE OR REPLACE PROCEDURE P_TEST IS V_SQL VARCHAR2(2000); CURSOR CURSOR_1 IS SELECT DISTINCT T.XCLCK FROM TEST T ORDER BY XCLCK; BEGIN V_SQL := 'SELECT WL,XYSL,XYCK'; FOR V_XCLCK IN CURSOR_1 LOOP V_SQL := V_SQL || ',' || 'SUM(DECODE(XCLCK,''' ... -
怎样实现sql行转列[2023-01-05]
-- 试一试。。。 create table #test ( 姓名 nvarchar(10), 学号 nvarchar(10), 题号 nvarchar(10), 答案 nvarchar(10) ) go insert into #test select '张三','001','1','A'union all select '张三','001','2','C'union all select '李四','002','1','B'union all select '李四','002','2','D' sele ... -
SQL语句行转列[2022-04-07]
SELECT a.org_id, a.PREM AS 团险保费PREM, b.PREM AS 个险保费PREM FROM t1 a INNER JOIN t1 b ON a.org_id=b.org_id WHERE (a.channel = '团险') AND (b.channel = '个险') -
oracle行转列sql怎么写?[2023-04-17]
可以使用SQL 提供的静态转置功能 pivot 和 unpivot,但是适用范围很受限,可以看下这种方式: http://c.raqsoft.com.cn/article/1543902421790?r=ddszm -
Oracle行转列的SQL语句[2023-01-22]
oracle 测试通过 Select std, Case When std=1 Then Min(f1) Else Max(f1)End f1, Max(f2) f2, Case When std=1 Then Max(f1) Else Min(f1) End f3, Min(f2) f4 From table1 Group By std -
SQL使用CASE WHEN 行转列为什么会出现NULL值?[2024-03-26]
当case 子句的条件未包括所有的取值情况,会出现null值。 例:select case when a >1 then A,when a=1 then b end 那么当 a< 1 时,语句中未指定取值,则返回 null值。 -
oracle 列名不确定 行转列[2023-09-09]
select decode(t.rn,1,t.单位名称) as 单位名称1 , decode(t.rn,2,t.单位名称) as 单位名称2, decode(t.rn,3,t.单位名称) as 单位名称3, from ( select c.单位名称,to_number() over(partition by c.单位名称) as rn from table1 a,table2 b,table3 c where a.id1 = b.id1 and b.id2=c.id2 ) t ; 这是在知道多少行记录数的情 ... -
SQL行转列后,怎么知道有多少列,列名是什么[2023-12-03]
SQL Server 2005及以上版本可以用XML PATH select left(A,len(A)-1) from(select (select a0101+',' from a01 a,deptcode dwhere a.dept_id = d.dept_id and d.dept_code like '0100%'and a0191 = '在岗正式员工'FOR XML PATH('')) A) t