2

Currently when i run a script in sql developer it looks like this:

Script output:

Script Output

However, I need it to look something like, as shown below, with the columns printed next to one another:

Example:

Example

Thanks, help is appreciated

2
  • i.sstatic.net/T4J2I.png - This is another example Commented May 29, 2016 at 5:28
  • Assuming that you really want text output rather than the much more common grid output, column "Recipe Name" format a30 will use 30 characters to display the "Recipe Name" column (longer names would wrap to the next line). Commented May 29, 2016 at 5:43

1 Answer 1

4

You can specify different output formats using SET sqlformat <format>:

SET sqlformat ansiconsole;

Set that prior to your sql query and you should get a nicer format. If you look into the sqlformat option, there are others you can use, but ansiconsole is likely the one you want.

Then later, if you like, you can use UNSET on sqlformat to revert back to what you had previously.

UNSET sqlformat;
Sign up to request clarification or add additional context in comments.

2 Comments

I have the same problem. This doesn't seem to take effect. No matter which sqlformat I choose I always get items on separate lines... I also tried changing linesize, but for some reason it doesn't get changed at all.
The UNSET command is no longer valid in later versions. To reset it, the new command is SET SQLFORMAT DEFAULT;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.