SELECT col1 'COLUMN 1'
FROM TABLENAME
I am getting an error 'from keyword not found where expected'
How can you give column alias in Oracle 10g some examples are appreciated
Use double quotes:
SELECT col1 "COLUMN 1" FROM TABLENAME
Shepherdess is correct - you can't use single quotes here.
If the alias doesn't have spaces, you could just type the name without any quotes:
SELECT col1 column1 FROM TABLENAME
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With