oracle - Set heading off is not working in SQLcl when set sqlformat csv -


i generating csv output using sqlcl.

set sqlformat csv   set heading off   select * hr.employees rownum < 10;    "employee_id","first_name","last_name","email","phone_number","hire_date","job_id","salary","commission_pct","manager_id","department_id"   100,"steven","king","sking","515.123.4567",17-jun-03,"ad_pres",24000,,,90   101,"neena","kochhar","nkochhar","515.123.4568",21-sep-05,"ad_vp",17000,,100,90   102,"lex","de haan","ldehaan","515.123.4569",13-jan-01,"ad_vp",17000,,100,90   103,"alexander","hunold","ahunold","590.423.4567",03-jan-06,"it_prog",9000,,102,60   104,"bruce","ernst","bernst","590.423.4568",21-may-07,"it_prog",6000,,103,60   

but getting heading don't want. imagine set heading off should turn off heading (as in sqlplus) why it's not working in sqlcl. if clear sql formatting (set sqlformat) heading off works. bug in sqlcl?

set pagesize 0 

lets run without pagination.

set heading off 

should work, broken. next release have fixed...like this

connected to: oracle database 12c enterprise edition release 12.2.0.1.0 - 64bit production  barry@orcl☘ >set sqlformat csv barry@orcl☘ >set heading off barry@orcl☘ >select * demo;  1,"barry" 2,"lisa" 3,"rebecca" 4,"katie-ellen" barry@orcl☘ > 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -