请问这个sql怎么写?? 我想查询几个常数,如:select 1,2,3,4 from A得到的结果是:Expr1 Expr2 Expr3 Expr4 1 2 3 4我想得到的结果是:Expr1 1 2 3 4即是4条数据这个sql如何写?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 其实你应该查一个表的数据,只是要多一列显示序号吧,select *,rownum from table 这样就可以 你可以 select 1 from table union select 2 from table union select 3 from table union select 4 from table select 1 as Expr1 from A unionselect 2 as Expr1 from A unionselect 3 as Expr1 from A unionselect 4 as Expr1 from A 不知道行不行 关于Oracle控制面板的问题 求唯一字符串 新建ORA群,群号:11199258 欢迎大家加入 SQL 语句怎么写呢? 单位局域网停机,特急! ORA-01536;space quota exceeded for tablespace 'USERS' 这个SQL怎么写??? 日期无效问题:TO_DATE('02-09-1980', 'dd-Mon-yyyy HH:MI:SS AM') 请有经验的大侠指点:如何管理alert_*.log文件? 编译时报错:必须在程序包体中对其进行定义?怎么回事? 2个表连接问题 求助! 新手求救~~oralce可以建单机服务器吗? 远程连接数据库
你可以 select 1 from table
union
select 2 from table
union
select 3 from table
union
select 4 from table
union
select 2 as Expr1 from A
union
select 3 as Expr1 from A
union
select 4 as Expr1 from A
不知道行不行