1

I would like use the following sql statement in my code:

SELECT ..., DATA.EXT_ID AS NUMBER, ... FROM DATA;

But I can't since "NUMBER" is a keyword. Is there any way around this? Thanks!

anonymouse
  • 639
  • 1
  • 8
  • 18

1 Answers1

3

Use double quotes around the keyword:

SELECT DATA.EXT_ID AS "NUMBER" FROM DATA;
MT0
  • 143,790
  • 11
  • 59
  • 117