0

I want to set the width of different columns of a table in a single query but am unable to do so.

I tried the below query but it did not work

column Name format a10, trn_id mail a25 ;

I got an error, missing expression.

How can I do this?

1 Answer 1

3

The syntax for COLUMN in SQL*Plus is, to quote from the documentation:

COL[UMN] [{column | expr} [option ...]]

There is no option to perform this on multiple columns, which means your syntax is incorrect. I can only suggest that you list each column separately.

column name format a10
column tm_id format a25

One thing to bear in mind; this is not a query. It is a command to format output only.

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

Comments

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.