这是我得到的输出。我试图更改设置页面但仍然是两行:
REG# FNAME
---------- --------------------------------------------------
LNAME
--------------------------------------------------
SST005 John
Lucas
PKR008 John
Lucas
PKR768 John
Lucas
REG# FNAME
---------- --------------------------------------------------
LNAME
--------------------------------------------------
QRT834 John
Lucas
PKR008 John
Lucas
LUCY02
如何只在一行中打印每一行。这是我的剧本:
SELECT TRUCK.REG# , EMPLOYEE.FNAME, EMPLOYEE.LNAME
FROM TRUCK
LEFT OUTER JOIN TRIP
ON TRUCK.REG# = TRIP.REG#
LEFT OUTER JOIN DRIVER
ON DRIVER.L# = TRIP.L#
LEFT OUTER JOIN EMPLOYEE
ON EMPLOYEE.E# = DRIVER.E#
;
答案 0 :(得分:2)
在脚本中使用SQL * Plus命令:
set pagesize 0 -- SET PAGESIZE number_of_lines
set heading off -- No headers
set linesize 200 -- Line size
etc.
http://docs.oracle.com/cd/B10501_01/server.920/a90842/ch7.htm